diff options
-rw-r--r-- | 12_Prompts.zsh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh index a4c9f30..6bdd814 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -325,17 +325,18 @@ two_lines_prompt () ## Le prompt le plus magnifique du monde, et c'est le mien ! # Affiche l'user, l'host, le tty et le pwd. Rien que ça... PS1=$AGENTS$MAILSTAT$ERROR$BATTERY$C_$prompt_colors[bar]$_C$STLINUX$HBAR$DATE" -"$C_"30;1"$_C$SHLVL"-"$C_$prompt_color[default]$_C$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m"$C_$prompt_colors[display]$_C"${DISPLAY:+($DISPLAY)} "$CURDIR$CVSTAG$SVNREV$GITBRANCH$HGBRANCH" "$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" " +"$C_$prompt_color[default]$_C$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m"$C_$prompt_colors[display]$_C"${DISPLAY:+($DISPLAY)} "$CURDIR$CVSTAG$SVNREV$GITBRANCH$HGBRANCH" "$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" " } ZSH_STATUS=$(zsh_status) if ( echo $ZSH_STATUS | grep -q -- "-D1rTY-" ) then - echo -n $c_$prompt_colors[warning]$_c - toilet -f bigmono9 "D1rTY Zsh.." - echo $c_$prompt_colors[none]$_c - echo + set_prompt_colors "$color[black]" + #echo -n $c_$prompt_colors[warning]$_c + #toilet -f bigmono9 "D1rTY Zsh.." + #echo $c_$prompt_colors[none]$_c + #echo fi precmd() @@ -348,16 +349,15 @@ precmd() then if ! ( echo $NEW_STATUS | grep -q -- "-D1rTY-" ) then - echo -n $c_$prompt_colors[warning]$_c - echo -n "You should restart Zsh.." - echo $c_$prompt_colors[none]$_c + # You should restart Zsh + set_prompt_colors "38;5;54" fi + else if ( echo $ZSH_STATUS | grep -q -- "-D1rTY-" ) then - echo -n $c_$prompt_colors[warning]$_c - echo -n "Your Zsh working copy is not clean.." - echo $c_$prompt_colors[none]$_c + # Your Zsh working copy is not clean + set_prompt_colors "38;5;81" fi fi |