summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues <hugues@hiegel.fr>2008-03-20 12:10:42 +0100
committerHugues <hugues@hiegel.fr>2008-03-20 12:10:42 +0100
commitc268cfc267a71254881a85975504f0a3e0e69815 (patch)
treebd93faa995af58ba4e7d6c081385820d5b20923e
parentff40c760ef2bb633804d1a66679846fcad9ea91a (diff)
Correction colors
-rw-r--r--11_Colors.zsh6
-rw-r--r--12_Prompts.zsh2
2 files changed, 6 insertions, 2 deletions
diff --git a/11_Colors.zsh b/11_Colors.zsh
index c76fd95..db68bb1 100644
--- a/11_Colors.zsh
+++ b/11_Colors.zsh
@@ -13,7 +13,7 @@ _c=m
C_="%{$c_"
_C="$_c%}"
-typeset -A prompt_colors git_colors mail_colors
+typeset -A prompt_colors git_colors mail_colors correct_colors
# I hate kik00l0l colorized prompts, so I'm using a way to
# give a dominant color for each part of the prompt, each of
@@ -81,3 +81,7 @@ set_prompt_colors ()
}
set_prompt_colors
+
+correct_colors[error]="$color[red];$color[bold]"
+correct_colors[suggest]="$color[blue];$color[bold]"
+
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index d9ae9fa..a5b7348 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -172,5 +172,5 @@ PS4="+%N:%i> "
#RPS1="%(?;;"$C_$prompt_colors[error]$_C"%?"$C_$color[none]$_C")"
# Ultime : prompt de correction :-)
-SPROMPT="zsh: $C_$color[blue]$_C%B'%R'%b$C_$color[none]$_C ? Vous ne vouliez pas plutôt $C_$color[magenta]$_C%B'%r'%b$C_$color[none]$_C ? [%BN%byae] "
+SPROMPT="zsh: $C_$correct_colors[error]$_C'%R'$C_$color[none]$_C ? Vous ne vouliez pas plutôt $C_$correct_colors[suggest]$_C'%r'$C_$color[none]$_C ? [%BN%byae] "