fix(grep): remove duplicate options

Grep options are added twice when using `egrep` alias.
This commit is contained in:
robertoaceves 2024-08-26 19:54:32 -04:00 committed by GitHub
commit c0f887e477
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,8 +24,8 @@ else
if [[ -n "$GREP_OPTIONS" ]]; then
# export grep, egrep and fgrep settings
alias grep="grep $GREP_OPTIONS"
alias egrep="grep -E $GREP_OPTIONS"
alias fgrep="grep -F $GREP_OPTIONS"
alias egrep="grep -E"
alias fgrep="grep -F"
# write to cache file if cache directory is writable
if [[ -w "$ZSH_CACHE_DIR" ]]; then