Browse code

Restructure spaces in git pieces

Geoff Garside authored on 31/08/2009 at 20:51:11
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="(%{$fg[red]%}${branch}%{$reset_color%}) $(parse_git_dirty) "
7
+    CURRENT_BRANCH="(%{$fg[red]%}${branch}%{$reset_color%})$(parse_git_dirty) "
8 8
   else
9 9
     CURRENT_BRANCH=''
10 10
   fi
... ...
@@ -13,5 +13,5 @@ function git_prompt_info() {
13 13
 }
14 14
 
15 15
 parse_git_dirty () {
16
-  [[ $(git status | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "%{$fg[yellow]%}✗%{$reset_color%}"
16
+  [[ $(git status | tail -n1) != "nothing to commit (working directory clean)" ]] && echo " %{$fg[yellow]%}✗%{$reset_color%}"
17 17
 }