summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2010-06-24 11:52:25 +0200
committerHugues Hiegel <hugues@hiegel.fr>2010-06-24 11:52:25 +0200
commit51615ec88e7a9e8d878c783d78d81d28a84babc7 (patch)
tree3380259a32bf923fbe15b93aebd3a7a98d69243b /12_Prompts.zsh
parent316bbb96be20f1e22aceefaac1f5818fc2f98f0a (diff)
[Funcs] zsh-status watchdog update
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh18
1 files changed, 11 insertions, 7 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 972e140..3639bb6 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -326,9 +326,8 @@ redefine_prompt ()
ZSH_STATUS=$(zsh_status)
if ( echo $ZSH_STATUS | grep -q -- "-D1rTY-" )
then
- echo -n $c_$prompt_colors[error]$_c
+ echo -n $c_$prompt_colors[warning]$_c
toilet -f bigmono9 "D1rTY Zsh.."
- echo -n " You should cleanup your working copy of ~/.zsh .."
echo $c_$prompt_colors[none]$_c
echo
fi
@@ -338,14 +337,19 @@ precmd()
NEW_STATUS=$(zsh_status)
if [ $NEW_STATUS != $ZSH_STATUS ]
then
- echo -n $c_$prompt_colors[error]$_c
- if ( echo $NEW_STATUS | grep -q -- "-D1rTY-" )
+ if ! ( echo $NEW_STATUS | grep -q -- "-D1rTY-" )
then
- echo -n "Zsh Up-To-Date but still WIP.."
- else
+ echo -n $c_$prompt_colors[warning]$_c
echo -n "You should restart Zsh.."
+ echo $c_$prompt_colors[none]$_c
+ 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
fi
- echo $c_$prompt_colors[none]$_c
fi
update_prompt_elements