From 38316b5764b899a4a60ffdafcfa1b7aec34eaf80 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Mon, 15 Sep 2014 14:34:51 +0200 Subject: [PATCH] zshrc: Send error output to devnull in grep-option detection Signed-off-by: Frank Terbeck --- etc/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 4eb1b30..c41cdd7 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -358,7 +358,7 @@ if ls --color=auto / >/dev/null 2>&1; then elif ls -G / >/dev/null 2>&1; then ls_options=( -G ) fi -if grep --color=auto -q "a" <<< "a"; then +if grep --color=auto -q "a" <<< "a" >/dev/null 2>&1; then grep_options=( --color=auto ) fi -- 2.1.4