Browse code

Minor corrections to deletion detection in git_prompt_status

Brandon Konkle authored on 14/07/2011 at 06:23:01
Showing 1 changed files
... ...
@@ -52,7 +52,9 @@ git_prompt_status() {
52 52
   if $(echo "$INDEX" | grep '^R  ' &> /dev/null); then
53 53
     STATUS="$ZSH_THEME_GIT_PROMPT_RENAMED$STATUS"
54 54
   fi
55
-  if $(echo "$INDEX" | grep '^D ' &> /dev/null); then
55
+  if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
56
+    STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
57
+  elif $(echo "$INDEX" | grep '^AD ' &> /dev/null); then
56 58
     STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
57 59
   fi
58 60
   if $(echo "$INDEX" | grep '^UU ' &> /dev/null); then