Browse Source

Colour branch name and add dirty string

Geoff Garside 15 years ago
parent
commit
652caa6b25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      git.zsh

+ 1 - 1
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