diff options
author | hugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913> | 2007-08-09 09:42:27 +0000 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 14:15:17 +0100 |
commit | 5f7a6fe5ac3384443eaf523d8218a4b8bb502e49 (patch) | |
tree | 19fbcd41d00bde089cb73bbdccbe6be047d1cc72 | |
parent | 002c45c81b46382bdbfd796a61e167ecda17e1db (diff) |
Des petites coquilles.
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@533 a0e5b806-a6f9-0310-978d-cbce73f8a913
-rw-r--r-- | 11_Prompts.zsh | 18 |
1 files 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 "[0;30mChecking 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 ## |