diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2009-05-14 14:33:08 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2009-05-14 14:33:08 +0200 |
commit | 3140ebd0f5f6110ec8ba2b271be8595393b59aca (patch) | |
tree | d0c73c31245a51b18b93899ccabf6858907e92d5 /10_Environment.zsh | |
parent | 80f100583ebe1a4a2856dcac593e7e1ed63260c9 (diff) |
[Colors] simplification of PS1_USER colors, and moved them into Environment
Diffstat (limited to '10_Environment.zsh')
-rw-r--r-- | 10_Environment.zsh | 17 |
1 files changed, 17 insertions, 0 deletions
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` + + |