summaryrefslogtreecommitdiff
path: root/git.zsh
diff options
context:
space:
mode:
authorGeoff Garside <geoff@geoffgarside.co.uk>2009-08-31 21:23:59 +0100
committerGeoff Garside <geoff@geoffgarside.co.uk>2009-08-31 21:23:59 +0100
commit652caa6b2591e773179b8e38992d516db1f99930 (patch)
tree7c85c42af9745105d2ad157a7209890dbda77eee /git.zsh
parenta9c18304621b045d90a2fc328da79f29a2de6b42 (diff)
downloadzsh-652caa6b2591e773179b8e38992d516db1f99930.tar.gz
zsh-652caa6b2591e773179b8e38992d516db1f99930.tar.bz2
zsh-652caa6b2591e773179b8e38992d516db1f99930.zip
Colour branch name and add dirty string
Diffstat (limited to 'git.zsh')
-rw-r--r--git.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.zsh b/git.zsh
index 85279265e..805969b71 100644
--- a/git.zsh
+++ b/git.zsh
@@ -4,7 +4,7 @@ function git_prompt_info() {
branch=${ref#refs/heads/}
if [[ -d .git ]]; then
- CURRENT_BRANCH="(${branch})"
+ CURRENT_BRANCH="(%{$fg[red]%}${branch}%{$reset_color%}) $(parse_git_dirty) "
else
CURRENT_BRANCH=''
fi