summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2010-06-24 11:32:46 +0200
committerHugues Hiegel <hugues@hiegel.fr>2010-06-24 11:32:46 +0200
commit316bbb96be20f1e22aceefaac1f5818fc2f98f0a (patch)
treebb52baae8a9211c40c802d46ba79706bb0d27733 /12_Prompts.zsh
parent77c94aa5c8ae000cd3a5eb6a9ccca27d00c4ed25 (diff)
[Funcs] zsh current git status watchdog
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh23
1 files changed, 23 insertions, 0 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 21779a0..972e140 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -323,8 +323,31 @@ redefine_prompt ()
}
+ZSH_STATUS=$(zsh_status)
+if ( echo $ZSH_STATUS | grep -q -- "-D1rTY-" )
+then
+ echo -n $c_$prompt_colors[error]$_c
+ toilet -f bigmono9 "D1rTY Zsh.."
+ echo -n " You should cleanup your working copy of ~/.zsh .."
+ echo $c_$prompt_colors[none]$_c
+ echo
+fi
+
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-" )
+ then
+ echo -n "Zsh Up-To-Date but still WIP.."
+ else
+ echo -n "You should restart Zsh.."
+ fi
+ echo $c_$prompt_colors[none]$_c
+ fi
+
update_prompt_elements
redefine_prompt
}