From 90c2112a5f9ec82e790130bef457dc6695e34015 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Mon, 27 Aug 2007 15:35:24 +0200 Subject: Hop, des chtites modifs A.L.C. --- 11_Prompts.zsh | 7 ++++--- 1 file 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:]]+)+:$') -- cgit v1.2.3