From b666d86a21ef269b5c7b9aba49f0730218b97a2f Mon Sep 17 00:00:00 2001 From: hugues Date: Thu, 9 Aug 2007 09:45:56 +0000 Subject: C'est mieux comme ça.. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@534 a0e5b806-a6f9-0310-978d-cbce73f8a913 --- 11_Prompts.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/11_Prompts.zsh b/11_Prompts.zsh index a10f260..1f5475f 100644 --- a/11_Prompts.zsh +++ b/11_Prompts.zsh @@ -44,7 +44,7 @@ COLOR_BAR="0;$GENERIC;$BOLD" COLOR_BRACES=$COLOR_BAR COLOR_BRANCH_OR_REV="0;$GENERIC" -COLOR_NOT_UP_TODATE="0;$RED;$BOLD" +COLOR_NOT_UP_TODATE="0;$YELLOW" COLOR_TOBE_COMMITED="0;$YELLOW;$BOLD" COLOR_CMD="$VOID" @@ -112,10 +112,10 @@ 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)" != "" ] ; then + if [ "$(grep "but not" <<< $_git_status)" != "" ] ; then COLOR_GIT=$COLOR_NOT_UP_TODATE + elif [ "$(grep "to be committed" <<< $_git_status)" != "" ] ; then + COLOR_GIT=$COLOR_TOBE_COMMITED else COLOR_GIT=$COLOR_BRANCH_OR_REV fi -- cgit v1.2.3