mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Fix grep.zsh: grep on FreeBSD 10 does not have --exclude-dir option.
This commit is contained in:
parent
f8f01262ab
commit
8904d44d8d
1 changed files with 6 additions and 3 deletions
|
|
@ -5,9 +5,12 @@
|
||||||
|
|
||||||
# avoid VCS folders
|
# avoid VCS folders
|
||||||
GREP_OPTIONS=
|
GREP_OPTIONS=
|
||||||
for PATTERN in .cvs .git .hg .svn; do
|
if [ $(uname) != "FreeBSD" ]
|
||||||
GREP_OPTIONS+="--exclude-dir=$PATTERN "
|
then
|
||||||
done
|
for PATTERN in .cvs .git .hg .svn; do
|
||||||
|
GREP_OPTIONS+="--exclude-dir=$PATTERN "
|
||||||
|
done
|
||||||
|
fi
|
||||||
GREP_OPTIONS+="--color=auto"
|
GREP_OPTIONS+="--color=auto"
|
||||||
export GREP_OPTIONS="$GREP_OPTIONS"
|
export GREP_OPTIONS="$GREP_OPTIONS"
|
||||||
export GREP_COLOR='1;32'
|
export GREP_COLOR='1;32'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue