Browse Source

Also set options for egrep and fgrep

Peter Vandenberk 5 years ago
parent
commit
b4b50f20ac
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/grep.zsh

+ 3 - 1
lib/grep.zsh

@@ -19,8 +19,10 @@ elif grep-flag-available --exclude=.cvs; then
     GREP_OPTIONS+=" --exclude=$EXC_FOLDERS"
 fi
 
-# export grep settings
+# export grep, egrep and fgrep settings
 alias grep="grep $GREP_OPTIONS"
+alias egrep="egrep $GREP_OPTIONS"
+alias fgrep="fgrep $GREP_OPTIONS"
 
 # clean up
 unset GREP_OPTIONS