From 5f7a6fe5ac3384443eaf523d8218a4b8bb502e49 Mon Sep 17 00:00:00 2001 From: hugues Date: Thu, 9 Aug 2007 09:42:27 +0000 Subject: Des petites coquilles. git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@533 a0e5b806-a6f9-0310-978d-cbce73f8a913 --- 11_Prompts.zsh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/11_Prompts.zsh b/11_Prompts.zsh index 37e15d8..a10f260 100644 --- a/11_Prompts.zsh +++ b/11_Prompts.zsh @@ -112,16 +112,16 @@ precmd () then print -n "Checking git status...\r" _git_status=$(git-runstatus 2>&- | grep -E '^# ([[:alpha:]]+ )+(but not|to be)( [[:alpha:]]+)+:$') - if [ "$(grep "to be committed" <<< $_git_status)" != "" ] - then - COLOR_GIT=$COLOR_TOBE_COMMITED - elif [ "$(grep "but not" <<< $_git_status)" != "" ] - COLOR_GIT=$COLOR_NOT_UP_TODATE - else - COLOR_GIT=$COLOR_BRANCH_OR_REV + if [ "$(grep "to be committed" <<< $_git_status)" != "" ] ; then + COLOR_GIT=$COLOR_TOBE_COMMITED + elif [ "$(grep "but not" <<< $_git_status)" != "" ] ; then + COLOR_GIT=$COLOR_NOT_UP_TODATE + else + COLOR_GIT=$COLOR_BRANCH_OR_REV + fi + + GITBRANCH=$C_$COLOR_DOUBLEDOT$_C:$C_$COLOR_GIT$_C$GITBRANCH fi - - GITBRANCH=$C_$COLOR_DOUBLEDOT$_C:$C_$COLOR_GIT$_C$GITBRANCH fi ## SVN TRACKING ## -- cgit v1.2.3