From c268cfc267a71254881a85975504f0a3e0e69815 Mon Sep 17 00:00:00 2001 From: Hugues Date: Thu, 20 Mar 2008 12:10:42 +0100 Subject: Correction colors --- 11_Colors.zsh | 6 +++++- 12_Prompts.zsh | 2 +- 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] " -- cgit v1.2.3