ignore any grep aliases that might be defined

This commit is contained in:
DanielFGray
2014-11-16 02:47:35 -06:00
parent df5b09e20b
commit 00ec11d3c0
7 changed files with 16 additions and 16 deletions

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