Merge pull request #3326 from DanielFGray/master

ignore any grep aliases that might be defined
This commit is contained in:
Robby Russell committed 2014-12-14 16:32:11 -08:00
commit eced76e0fd
7 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ function git_prompt_long_sha() {
git_prompt_status() {
INDEX=$(command git status --porcelain -b 2> /dev/null)
STATUS=""
if $(echo "$INDEX" | grep -E '^\?\? ' &> /dev/null); then
if $(echo "$INDEX" | command grep -E '^\?\? ' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS"
fi
if $(echo "$INDEX" | grep '^A ' &> /dev/null); then