summaryrefslogtreecommitdiff
path: root/11_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@openwide.fr>2007-08-27 15:35:24 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:17 +0100
commit90c2112a5f9ec82e790130bef457dc6695e34015 (patch)
tree425bd564f549b56c41d7c789c442b1c81e6e5d64 /11_Prompts.zsh
parent841cc66c5df72dcf15282270cb9afd6ccab7e054 (diff)
Hop, des chtites modifs A.L.C.
Diffstat (limited to '11_Prompts.zsh')
-rw-r--r--11_Prompts.zsh7
1 files changed, 4 insertions, 3 deletions
diff --git a/11_Prompts.zsh b/11_Prompts.zsh
index 3ea857a..a0a2feb 100644
--- a/11_Prompts.zsh
+++ b/11_Prompts.zsh
@@ -115,10 +115,11 @@ precmd ()
errorsize=4
## GIT TRACKING ##
- GITBRANCH=$(git branch 2>&- | grep -E '^\* ' | cut -c3-)
- if [ "$GITBRANCH" != "" ]
+ unset GITBRANCH
+ if [ "$GITCHECK" != "" ]
then
- if [ "$GITCHECK" != "" ]
+ GITBRANCH=$(git branch 2>&- | grep -E '^\* ' | cut -c3-)
+ if [ "$GITBRANCH" != "" ]
then
preprint "Checking git status..."
_git_status=$(git-runstatus 2>&- | grep -E '^# ([[:alpha:]]+ )+(but not|to be)( [[:alpha:]]+)+:$')