Minor corrections to deletion detection in git_prompt_status
Robby Russell authored on 31/07/2011 at 01:08:54... | ... |
@@ -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 |