Merge pull request #4 from yeevgen/patch-2

minor update regexp to fit to the new git status output
This commit is contained in:
Steve Losh 2011-08-19 06:24:57 -07:00
commit 2d2bcf68ee

View file

@ -11,7 +11,7 @@ parse_git_dirty () {
echo -n "$ZSH_THEME_GIT_PROMPT_DIRTY"
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"
fi