From 96e7fbc88ace0698a759cf83a9308953851dd019 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 11 Mar 2019 15:11:16 +1300 Subject: aliases: Suppress error output from grep test --- aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1