summaryrefslogtreecommitdiff
path: root/11_Colors.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-01-08 11:57:26 +0100
committerHugues Hiegel <hugues@hiegel.fr>2009-01-08 11:57:26 +0100
commit04f86ae7dc7af580453eb608bbd97133462b530b (patch)
tree9aa208e4737178e1c331d2436b7964184260f7b6 /11_Colors.zsh
parent045f51bdedf22f0998d8173d6524660043de4164 (diff)
[COLORS] gestion de couleurs pour Screen
Diffstat (limited to '11_Colors.zsh')
-rw-r--r--11_Colors.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/11_Colors.zsh b/11_Colors.zsh
index 73f94e2..9e69c34 100644
--- a/11_Colors.zsh
+++ b/11_Colors.zsh
@@ -25,6 +25,7 @@ typeset -A prompt_colors git_colors mail_colors correct_colors
PS1_ROOT=${PS1_ROOT:-$color[red]}
PS1_USER=${PS1_USER:-$color[blue]}
PS1_USER_SSH=${PS1_USER_SSH:-$color[magenta]}
+PS1_USER_SCR=${PS1_USER_SCR:-$color[cyan]}
prompt_colors[generic]=`print -Pn "%(! $PS1_ROOT $PS1_USER)"`
normal_user && if ( [ "$SSH_TTY" != "" ] )
@@ -34,6 +35,10 @@ then
# That's so good, use it ! :-)
prompt_colors[generic]=${PS1_USER_SSH:-$prompt_colors[generic]}
fi
+normal_user && if ( [ "$TERM" = "screen" ] )
+then
+ prompt_colors[generic]=${PS1_USER_SCR:-$prompt_colors[generic]}
+fi
#
# This func is intended to give a quick way to set the colors for the