diff options
-rw-r--r-- | 11_Prompts.zsh | 8 |
1 files 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 "[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)" != "" ] ; 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 |