mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Don't rely on man-pages for grep feature check
This commit is contained in:
parent
5b3df16469
commit
5733330834
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
# avoid VCS folders if grep supports it
|
||||
GREP_OPTIONS=
|
||||
if [[ "$(man grep | grep -q exclude-dir)" != "1" ]]; then
|
||||
if [[ "$(grep --help | grep -q exclude-dir)" != "1" ]]; then
|
||||
for PATTERN in .cvs .git .hg .svn; do
|
||||
GREP_OPTIONS+="--exclude-dir=$PATTERN "
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue