Browse code

merge master

steeef authored on 05/10/2010 at 05:08:38
Showing 1 changed files
... ...
@@ -79,16 +79,16 @@ function steeef_chpwd {
79 79
 add-zsh-hook chpwd steeef_chpwd
80 80
 
81 81
 function steeef_precmd {
82
-    # check for untracked files or updated submodules, since vcs_info doesn't
83
-    if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
84
-        PR_GIT_UPDATE=1
85
-        FMT_BRANCH="(%{$turquoise%}%b%u%c%{$hotpink%}●${PR_RST})"
86
-    else
87
-        FMT_BRANCH="(%{$turquoise%}%b%u%c${PR_RST})"
88
-    fi
89
-    zstyle ':vcs_info:*:prompt:*' formats       "${FMT_BRANCH}"
90
-
91 82
     if [[ -n "$PR_GIT_UPDATE" ]] ; then
83
+        # check for untracked files or updated submodules, since vcs_info doesn't
84
+        if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
85
+            PR_GIT_UPDATE=1
86
+            FMT_BRANCH="(%{$turquoise%}%b%u%c%{$hotpink%}●${PR_RST})"
87
+        else
88
+            FMT_BRANCH="(%{$turquoise%}%b%u%c${PR_RST})"
89
+        fi
90
+        zstyle ':vcs_info:*:prompt:*' formats       "${FMT_BRANCH}"
91
+
92 92
         vcs_info 'prompt'
93 93
         PR_GIT_UPDATE=
94 94
     fi