mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
Use unaliased grep in flag check
This commit is contained in:
parent
cf586b54b8
commit
0190eb084b
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ GREP_OPTIONS="--color=auto"
|
||||||
VCS_FOLDERS="{.bzr,.cvs,.git,.hg,.svn}"
|
VCS_FOLDERS="{.bzr,.cvs,.git,.hg,.svn}"
|
||||||
|
|
||||||
grep-flag-available() {
|
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
|
if grep-flag-available --exclude-dir=.cvs; then
|
||||||
GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS"
|
GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS"
|
||||||
|
|
Loading…
Reference in a new issue