Permalink
Browse files

Merge pull request #4 from yeevgen/patch-2

minor update regexp to fit to the new git status output
  • Loading branch information...
2 parents 9ab8458 + 18211c7 commit 2d2bcf68eefe587b54e8e40436839fc6d37ebcaf @sjl committed Aug 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/git.zsh
View
@@ -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

0 comments on commit 2d2bcf6

Please sign in to comment.