summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Vandenberk <peter.vandenberk@simplybusiness.co.uk>2018-10-10 17:21:06 +0100
committerMarc Cornellà <marc.cornella@live.com>2020-03-01 13:51:55 +0100
commitb4b50f20ac7a6645d04993ba8ca8695a41b8db7a (patch)
treec3a62c89b6d6f6f4d95f3ff0e114e10d011a5dad
parentb6f2cfdb93627ca82ced24aaddb122b3a76a2638 (diff)
downloadzsh-b4b50f20ac7a6645d04993ba8ca8695a41b8db7a.tar.gz
zsh-b4b50f20ac7a6645d04993ba8ca8695a41b8db7a.tar.bz2
zsh-b4b50f20ac7a6645d04993ba8ca8695a41b8db7a.zip
Also set options for egrep and fgrep
-rw-r--r--lib/grep.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/grep.zsh b/lib/grep.zsh
index 886e36a8d..bd9dad41f 100644
--- a/lib/grep.zsh
+++ b/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