projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb94ae
)
zshrc: Send error output to devnull in grep-option detection
author
Frank Terbeck
<ft@grml.org>
Mon, 15 Sep 2014 12:34:51 +0000
(14:34 +0200)
committer
Frank Terbeck
<ft@grml.org>
Mon, 15 Sep 2014 12:34:51 +0000
(14:34 +0200)
Signed-off-by: Frank Terbeck <ft@grml.org>
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
4eb1b30
..
c41cdd7
100644
(file)
--- 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