zshrc: Send error output to devnull in grep-option detection
[grml-etc-core.git] / etc / zsh / zshrc
index 4eb1b30..c41cdd7 100644 (file)
@@ -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