From 3140ebd0f5f6110ec8ba2b271be8595393b59aca Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 14 May 2009 14:33:08 +0200 Subject: [Colors] simplification of PS1_USER colors, and moved them into Environment --- 10_Environment.zsh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to '10_Environment.zsh') diff --git a/10_Environment.zsh b/10_Environment.zsh index 158aae3..c7e098b 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -29,6 +29,21 @@ _c=m C_="%{$c_" _C="$_c%}" +# I hate kik00l0l colorized prompts, so I'm using a way to +# give a dominant color for each part of the prompt, each of +# these remain still configurable one by one. +# Take a look to set_prompt_colors for these colorizations. +# +# To set the dominant color I'm using this : +# +# - PS1_ROOT when we are root +# - PS1_USER for normal usage +# +# I'm storing the resulting dominant color in $prompt_colors[generic] + +PS1_ROOT=${PS1_ROOT:-$color[red]} +PS1_USER=${PS1_USER:-$color[blue]} + ## Variables d'environnement ``classiques'' # # L'utilisation de la forme ${VARIABLE:+$VARIABLE:} permet d'accoler ``:'' @@ -54,3 +69,5 @@ HISTSIZE=42000 SAVEHIST=42000 export GPG_TTY=`tty` + + -- cgit v1.2.3