summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aliases2
1 files changed, 1 insertions, 1 deletions
diff --git a/aliases b/aliases
index dd7db8e..08f0701 100644
--- a/aliases
+++ b/aliases
@@ -30,7 +30,7 @@ alias pd=popd
alias po='pushd $OLDPWD'
# Add hotdog opts only if GNUy
-if grep -V | grep -q 'GNU grep' ; then
+if grep -V 2>/dev/null | grep -q 'GNU grep' ; then
alias grep="grep --color=auto"
alias egrep="egrep --color=auto"
fi