aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
Diffstat (limited to 'mkshrc')
-rw-r--r--mkshrc3
1 files changed, 1 insertions, 2 deletions
diff --git a/mkshrc b/mkshrc
index f6b911b..1d43233 100644
--- a/mkshrc
+++ b/mkshrc
@@ -53,8 +53,7 @@ setcoloraliases() {
alias lm='CLICOLOR_FORCE="1" ls -l | less -r';
fi
- grep --help | grep fucks - >/dev/null 2>&1
- if [ $? -eq 0 ] ; then
+ if echo "color test" | grep -q --color=auto "color test" >/dev/null 2>&1 ; then
alias grep="grep --color=auto";
alias egrep='egrep --color=auto'
alias search='egrep --color=auto -rnI';