mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Merge ca4779402a into 141c2e5934
This commit is contained in:
commit
7b88c1b957
1 changed files with 6 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
# Examples: http://rubyurl.com/ZXv
|
# Examples: http://rubyurl.com/ZXv
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# color grep output
|
||||||
GREP_OPTIONS="--color=auto"
|
GREP_OPTIONS="--color=auto"
|
||||||
|
|
||||||
# avoid VCS folders (if the necessary grep flags are available)
|
# avoid VCS folders (if the necessary grep flags are available)
|
||||||
|
|
@ -20,5 +21,8 @@ elif grep-flag-available --exclude=.cvs; then
|
||||||
fi
|
fi
|
||||||
unfunction grep-flag-available
|
unfunction grep-flag-available
|
||||||
|
|
||||||
export GREP_OPTIONS="$GREP_OPTIONS"
|
# define grep wrapper (GREP_OPTIONS env var is deprecated)
|
||||||
export GREP_COLOR='1;32'
|
eval "function grep {
|
||||||
|
command grep $GREP_OPTIONS \"\$@\"
|
||||||
|
}"
|
||||||
|
unset GREP_OPTIONS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue