From 04f86ae7dc7af580453eb608bbd97133462b530b Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 8 Jan 2009 11:57:26 +0100 Subject: [COLORS] gestion de couleurs pour Screen --- 11_Colors.zsh | 5 +++++ 1 file changed, 5 insertions(+) (limited to '11_Colors.zsh') 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 -- cgit v1.2.3