Browse code

Added modified while newly added and type change detection to git prompt modified status.

Sorin Ionescu authored on 04/02/2011 at 04:24:33
Showing 1 changed files
... ...
@@ -26,6 +26,10 @@ git_prompt_status() {
26 26
   fi
27 27
   if $(echo "$INDEX" | grep '^ M ' &> /dev/null); then
28 28
     STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
29
+  elif $(echo "$INDEX" | grep '^AM ' &> /dev/null); then
30
+    STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
31
+  elif $(echo "$INDEX" | grep '^ T ' &> /dev/null); then
32
+    STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
29 33
   fi
30 34
   if $(echo "$INDEX" | grep '^R  ' &> /dev/null); then
31 35
     STATUS="$ZSH_THEME_GIT_PROMPT_RENAMED$STATUS"