Fix MM lines being read correctly

This commit is contained in:
Adam Lindberg 2011-06-08 16:33:29 +01:00
parent d99284f6b5
commit 3eae652a6d

View file

@ -49,7 +49,7 @@ custom_git_prompt_status() {
if $(echo "$INDEX" | grep '^R' &> /dev/null); then if $(echo "$INDEX" | grep '^R' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_RENAMED$STATUS" STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_RENAMED$STATUS"
fi fi
if $(echo "$INDEX" | grep '^M ' &> /dev/null); then if $(echo "$INDEX" | grep '^M' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_MODIFIED$STATUS" STATUS="$ZSH_THEME_GIT_PROMPT_STAGED_MODIFIED$STATUS"
fi fi
if $(echo "$INDEX" | grep '^A' &> /dev/null); then if $(echo "$INDEX" | grep '^A' &> /dev/null); then