summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
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