diff options
author | Robby Russell <robby@planetargon.com> | 2013-04-07 19:00:22 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-04-07 19:00:22 -0700 |
commit | 3dc073a5424d2d251800e50c68357d3cd941d0c6 (patch) | |
tree | 891c9fd893a36d641e13cb40f8603c7924c83280 /lib | |
parent | 601d4d6efc3babed55cbf90252538080089dcfa5 (diff) | |
parent | 889045068465c3aac25b212b80b07f3f1755d937 (diff) | |
download | zsh-3dc073a5424d2d251800e50c68357d3cd941d0c6.tar.gz zsh-3dc073a5424d2d251800e50c68357d3cd941d0c6.tar.bz2 zsh-3dc073a5424d2d251800e50c68357d3cd941d0c6.zip |
Merge pull request #1690 from docwhat/git-untracked
This fixes checking for git untracked items
Diffstat (limited to 'lib')
-rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index 67075248e..98c00bd8a 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -62,7 +62,7 @@ function git_prompt_long_sha() { git_prompt_status() { INDEX=$(git status --porcelain -b 2> /dev/null) STATUS="" - if $(echo "$INDEX" | grep '^\?\? ' &> /dev/null); then + if $(echo "$INDEX" | grep -E '^\?\? ' &> /dev/null); then STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS" fi if $(echo "$INDEX" | grep '^A ' &> /dev/null); then |