...
|
...
|
@@ -35,7 +35,7 @@ custom_git_prompt_status() {
|
35
|
35
|
if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
|
36
|
36
|
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
|
37
|
37
|
fi
|
38
|
|
- if $(echo "$INDEX" | grep '^ M ' &> /dev/null); then
|
|
38
|
+ if $(echo "$INDEX" | grep '^.M ' &> /dev/null); then
|
39
|
39
|
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
|
40
|
40
|
elif $(echo "$INDEX" | grep '^AM ' &> /dev/null); then
|
41
|
41
|
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
|
...
|
...
|
@@ -46,7 +46,7 @@ custom_git_prompt_status() {
|
46
|
46
|
if $(echo "$INDEX" | grep '^D ' &> /dev/null); then
|
47
|
47
|
STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_DELETED$STATUS"
|
48
|
48
|
fi
|
49
|
|
- if $(echo "$INDEX" | grep '^R ' &> /dev/null); then
|
|
49
|
+ if $(echo "$INDEX" | grep '^R' &> /dev/null); then
|
50
|
50
|
STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_RENAMED$STATUS"
|
51
|
51
|
fi
|
52
|
52
|
if $(echo "$INDEX" | grep '^M ' &> /dev/null); then
|