diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 01:09:26 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 14:15:23 +0100 |
commit | e2761ab1784145e286ce51297071ce2a85ca0d19 (patch) | |
tree | 788a6cb990725775940b13166b6f661a6364e2b3 /11_Prompts.zsh | |
parent | 2ad9e20123a840d5338ea2ad4c4684826cff3776 (diff) |
Better git status/colors codes managment.
Diffstat (limited to '11_Prompts.zsh')
-rw-r--r-- | 11_Prompts.zsh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/11_Prompts.zsh b/11_Prompts.zsh index 8817cc0..6012bb0 100644 --- a/11_Prompts.zsh +++ b/11_Prompts.zsh @@ -43,16 +43,19 @@ COLOR_PAREN="$color[reset];$color[cyan]" COLOR_MAIL="$color[reset];$color[yellow];$color[bold]" COLOR_BAR="$color[reset];$GENERIC;$color[bold]" COLOR_BRACES=$COLOR_BAR +COLOR_ERRR="$color[bold];$color[yellow]" +COLOR_DATE="$color[reset];$GENERIC" +COLOR_CMD="$color[reset]" +COLOR_EXEC="$color[reset]" COLOR_BRANCH_OR_REV="$color[reset];$GENERIC" COLOR_NOT_UP_TO_DATE="$color[reset];$color[green];$color[bold]" -COLOR_TO_BE_COMMITED="$color[reset];$color[yellow];$color[bold]" +COLOR_TO_BE_COMMITED="$COLOR_ERRR" -COLOR_CMD="$color[reset]" -COLOR_EXEC="$color[reset]" - -COLOR_ERRR="$color[bold];$color[yellow]" -COLOR_DATE="$color[reset];$GENERIC" +COLOR_GIT_MANAGMENT="$color[reset];$color[red];$color[bold]" +COLOR_GIT_CACHED="$color[reset];$COLOR_ERRR" +COLOR_GIT_NOT_UP_TO_DATE="$color[reset];$COLOR_NOT_UP_TO_DATE" +COLOR_GIT_UP_TO_DATE="$color[reset];$GENERIC" ## Prompts # @@ -123,7 +126,7 @@ old_precmd() # get git status GITBRANCH=$(get_git_branch) - GITBRANCH=${GITBRANCH:+$C_$COLOR_DOUBLEDOT$_C:$C_$(get_git_status)$_C$GITBRANCH} + GITBRANCH=${GITBRANCH:+$C_$COLOR_DOUBLEDOT$_C:$C_"$(get_git_status)"$_C$GITBRANCH} # First line of prompt, calculation of the remaining place spaceleft=$((1 + $COLUMNS - $ERRORSIZE - $MAILSTATSIZE - $DATESIZE)) |