summaryrefslogtreecommitdiff
path: root/aliases
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-03-11 15:11:16 +1300
committerDavid Phillips <david@sighup.nz>2019-03-11 15:11:16 +1300
commit96e7fbc88ace0698a759cf83a9308953851dd019 (patch)
treeb9991eab6389f64075abfaa1d4bed05312baa1d7 /aliases
parentccc4870b6eda36b03d1a94e15af00dd06be08fa3 (diff)
downloaddotfiles-96e7fbc88ace0698a759cf83a9308953851dd019.tar.xz
aliases: Suppress error output from grep test
Diffstat (limited to 'aliases')
-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