b4b50f20ac7a6645d04993ba8ca8695a41b8db7a
- Author
- Peter Vandenberk <peter.vandenberk@simplybusiness.co.uk>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Also set options for egrep and fgrep
Diff
1diff --git a/lib/grep.zsh b/lib/grep.zsh
2index 886e36a8dee2603c83cde56dcf20512b3e82670a..bd9dad41f2fcd8df76c26e488c0d75f1fafe9048 100644
3--- a/lib/grep.zsh
4+++ b/lib/grep.zsh
5@@ -19,8 +19,10 @@ elif grep-flag-available --exclude=.cvs; then
6 GREP_OPTIONS+=" --exclude=$EXC_FOLDERS"
7 fi
8
9-# export grep settings
10+# export grep, egrep and fgrep settings
11 alias grep="grep $GREP_OPTIONS"
12+alias egrep="egrep $GREP_OPTIONS"
13+alias fgrep="fgrep $GREP_OPTIONS"
14
15 # clean up
16 unset GREP_OPTIONS