Browse Source

Use unaliased grep in flag check

Marc Cornellà 9 years ago
parent
commit
0190eb084b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/grep.zsh

+ 1 - 1
lib/grep.zsh

@@ -9,7 +9,7 @@ GREP_OPTIONS="--color=auto"
 VCS_FOLDERS="{.bzr,.cvs,.git,.hg,.svn}"
 
 grep-flag-available() {
-    echo | grep $1 "" >/dev/null 2>&1
+    echo | command grep $1 "" >/dev/null 2>&1
 }
 if grep-flag-available --exclude-dir=.cvs; then
     GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS"