diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-01-25 14:36:59 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-01-25 14:36:59 +0100 |
commit | fc32b3a21708bf48ffd5af87fd5de45cebd7398c (patch) | |
tree | 4a73e735cfae8bfbe58777d87de7ee00eadf2ab6 /12_Prompts.zsh | |
parent | 1e3188699a5d0759211b884135e10a833205ba76 (diff) |
Corrects commit f8dfa7bf4: Huge cleanup - Phase #1
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r-- | 12_Prompts.zsh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh index a9fe07b..48ee978 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -95,8 +95,8 @@ __update_prompt_elements() { # Error [ "$DEBUG" = "yes" ] && echo -n " Error code..." - ERRORSIZE=${#error} - error="%(?;;"$C_$_prompt_colors[bar]$_C$T_"$_tq_"$_T$C_$_prompt_colors[error]$_C"%?)" + ERRORSIZE=${#ERROR} + ERROR="%(?;;"$C_$_prompt_colors[bar]$_C$T_"$_tq_"$_T$C_$_prompt_colors[error]$_C"%?)" [ "$DEBUG" = "yes" ] && echo [ "$DEBUG" = "yes" ] && echo -n " Term title..." @@ -379,7 +379,7 @@ fi precmd() { # this MUST BE the real first operation else we lose the error code... - error=$(print -Pn "%(?;;-%?)") + ERROR=$(print -Pn "%(?;;-%?)") __update_prompt_elements __redefine_prompt |