summaryrefslogtreecommitdiff
path: root/11_Prompts.zsh
diff options
context:
space:
mode:
authorhugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913>2007-08-09 09:45:56 +0000
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:17 +0100
commitb666d86a21ef269b5c7b9aba49f0730218b97a2f (patch)
treeebb066bd05497494d4bc72c52ef967ef6e1425f8 /11_Prompts.zsh
parent5f7a6fe5ac3384443eaf523d8218a4b8bb502e49 (diff)
C'est mieux comme ça..
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@534 a0e5b806-a6f9-0310-978d-cbce73f8a913
Diffstat (limited to '11_Prompts.zsh')
-rw-r--r--11_Prompts.zsh8
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 "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