added igrep for inverse grep

This commit is contained in:
Hannes
2026-08-21 19:47:34 +02:00
parent a3f0b42353
commit 9ed74e1028
+7 -1
View File
@@ -287,7 +287,7 @@ end
################ GREP ######################################################### ################ GREP #########################################################
if test -e /usr/bin/ugrep if command -q ugrep
alias grep='ugrep --color=auto' alias grep='ugrep --color=auto'
alias egrep='ugrep -E --color=auto' alias egrep='ugrep -E --color=auto'
alias fgrep='ugrep -F --color=auto' alias fgrep='ugrep -F --color=auto'
@@ -296,6 +296,12 @@ else
alias fgrep='grep -F' alias fgrep='grep -F'
end end
if command -q ugrep
alias igrep='ugrep --color=auto --invert-match'
else if command -q grep
alias igrep='grep --color=auto --invert-match'
end
################ WGET ######################################################### ################ WGET #########################################################
if test -e /usr/bin/wget if test -e /usr/bin/wget