mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
Also set options for egrep and fgrep
This commit is contained in:
1 parent
b6f2cfdb93
commit
b4b50f20ac
1 file changed
+3
-1
+3
-1
@@ -19,8 +19,10 @@ elif grep-flag-available --exclude=.cvs; then
|
|||||||
GREP_OPTIONS+=" --exclude=$EXC_FOLDERS"
|
GREP_OPTIONS+=" --exclude=$EXC_FOLDERS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# export grep settings
|
# export grep, egrep and fgrep settings
|
||||||
alias grep="grep $GREP_OPTIONS"
|
alias grep="grep $GREP_OPTIONS"
|
||||||
|
alias egrep="egrep $GREP_OPTIONS"
|
||||||
|
alias fgrep="fgrep $GREP_OPTIONS"
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
unset GREP_OPTIONS
|
unset GREP_OPTIONS
|
||||||
|
|||||||
Reference in new issue
Block a user