summaryrefslogtreecommitdiff
path: root/lib/git.zsh
diff options
context:
space:
mode:
authorChristian Höltje <choltje@us.ibm.com>2013-04-03 20:41:05 -0400
committerChristian Höltje <choltje@us.ibm.com>2013-04-03 20:41:05 -0400
commit889045068465c3aac25b212b80b07f3f1755d937 (patch)
tree1fa46b4987c28d8eaf7452daacee2baabc21920f /lib/git.zsh
parentb8b241f630377aacefade327c94655cec96b002f (diff)
downloadzsh-889045068465c3aac25b212b80b07f3f1755d937.tar.gz
zsh-889045068465c3aac25b212b80b07f3f1755d937.tar.bz2
zsh-889045068465c3aac25b212b80b07f3f1755d937.zip
This fixes checking for git untracked items
The grep expression was incorrect for normal grep. Adding the `-E` option fixed the escaping of the question marks.
Diffstat (limited to 'lib/git.zsh')
-rw-r--r--lib/git.zsh2
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