Browse code

Colour branch name and add dirty string

Geoff Garside authored on 31/08/2009 at 20:23:59
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@ function git_prompt_info() {
4 4
   branch=${ref#refs/heads/}
5 5
 
6 6
   if [[ -d .git ]]; then
7
-    CURRENT_BRANCH="(${branch})"
7
+    CURRENT_BRANCH="(%{$fg[red]%}${branch}%{$reset_color%}) $(parse_git_dirty) "
8 8
   else
9 9
     CURRENT_BRANCH=''
10 10
   fi