889045068465c3aac25b212b80b07f3f1755d937

Author
Christian Höltje <choltje@us.ibm.com>
Committer
Christian Höltje <choltje@us.ibm.com>
Date

Message

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.

Diff

 1diff --git a/lib/git.zsh b/lib/git.zsh
 2index 67075248e92e07500f567d149933fbee645a6899..98c00bd8afed398b26e991e24d5d4e2060f0e7c7 100644
 3--- a/lib/git.zsh
 4+++ b/lib/git.zsh
 5@@ -62,7 +62,7 @@ function git_prompt_long_sha() {
 6 git_prompt_status() {
 7   INDEX=$(git status --porcelain -b 2> /dev/null)
 8   STATUS=""
 9-  if $(echo "$INDEX" | grep '^\?\? ' &> /dev/null); then
10+  if $(echo "$INDEX" | grep -E '^\?\? ' &> /dev/null); then
11     STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS"
12   fi
13   if $(echo "$INDEX" | grep '^A  ' &> /dev/null); then