minor update regexp to fit to the new git status output

This commit is contained in:
Yevgeniy Viktorov 2011-07-27 13:44:06 +03:00
commit 18211c7b5a

View file

@ -11,7 +11,7 @@ parse_git_dirty () {
echo -n "$ZSH_THEME_GIT_PROMPT_DIRTY" echo -n "$ZSH_THEME_GIT_PROMPT_DIRTY"
fi fi
if [[ $(echo ${gitstat} | grep -c "^\(# Untracked files:\|# Changed but not updated:\)$") > 0 ]]; then if [[ $(echo ${gitstat} | grep -c "^\(# Untracked files:\|# Changed but not updated:\|# Changes not staged for commit:\)$") > 0 ]]; then
echo -n "$ZSH_THEME_GIT_PROMPT_UNTRACKED" echo -n "$ZSH_THEME_GIT_PROMPT_UNTRACKED"
fi fi