diff options
author | Robby Russell <robby@planetargon.com> | 2009-08-31 15:09:34 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2009-08-31 15:09:34 -0700 |
commit | 09e2193ae6a4ec64290e2a9be2ec54179f6e3b5b (patch) | |
tree | c8cdebcfee0c3bd67bb01ac241fe2c732546cd13 /git.zsh | |
parent | e1f5c0c703c60d473144f58e1ab49d51c38ab526 (diff) | |
parent | af8294d2068e3614a7635486de1d89e12e23a8e5 (diff) | |
download | zsh-09e2193ae6a4ec64290e2a9be2ec54179f6e3b5b.tar.gz zsh-09e2193ae6a4ec64290e2a9be2ec54179f6e3b5b.tar.bz2 zsh-09e2193ae6a4ec64290e2a9be2ec54179f6e3b5b.zip |
Merging geoffgarside work
Diffstat (limited to 'git.zsh')
-rw-r--r-- | git.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ function git_prompt_info() { if [[ -d .git ]]; then ref=$(git symbolic-ref HEAD 2> /dev/null) || return branch=${ref#refs/heads/} - CURRENT_BRANCH="%{$fg[red]%}git:(%{$fg[green]${branch}%{$fg[red])" + CURRENT_BRANCH="git:(%{$fg[red]%}${branch}%{$fg[blue]%})%{$reset_color%}$(parse_git_dirty)" else CURRENT_BRANCH='' fi @@ -12,5 +12,5 @@ function git_prompt_info() { } parse_git_dirty () { - [[ $(git status | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "%{$fg[white] ♻ " + [[ $(git status | tail -n1) != "nothing to commit (working directory clean)" ]] && echo " %{$fg[yellow]%}✗%{$reset_color%}" } |