summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-05-14 14:33:08 +0200
committerHugues Hiegel <hugues@hiegel.fr>2009-05-14 14:33:08 +0200
commit3140ebd0f5f6110ec8ba2b271be8595393b59aca (patch)
treed0c73c31245a51b18b93899ccabf6858907e92d5 /12_Prompts.zsh
parent80f100583ebe1a4a2856dcac593e7e1ed63260c9 (diff)
[Colors] simplification of PS1_USER colors, and moved them into Environment
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh20
1 files changed, 1 insertions, 19 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index e762a6b..bdbb55a 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -11,25 +11,7 @@
prompt_colors[generic]=${PS1_USER:-}
if privileged_user
then
- prompt_colors[generic]=${PS1_ROOT:-$color[red]}
-else
- if ( [ "$SSH_TTY" != "" ] )
- then
- # This allows us to easily distinguish shells
- # which really are on the local machine or not.
- # That's so good, use it ! :-)
- prompt_colors[generic]=${PS1_USER_SSH:-$PS1_USER}
- fi
- if ( echo "$TERM" | grep "^screen.*$" >/dev/null )
- then
- # Are we under a screen session ?
- prompt_colors[generic]=${PS1_USER_SCR:-$PS1_USER}
- fi
- if ( [ ! -z "$SUDO_USER" ] )
- then
- # Are we sudo-ed under another user than root ?
- prompt_colors[generic]=${PS1_SUDO:-$PS1_USER}
- fi
+ prompt_colors[generic]=${PS1_ROOT:-$color[bold];$color[red]}
fi
set_prompt_colors