X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=bf40267af60a9aef5721b63b9fd4a61686e1b15c;hb=5f433e9ef61a841d4a8ef3853a0e129af16d70f8;hp=30f15504135ce42eb48bc9b2e02a1f616a035c22;hpb=b2a42cb947f2a21a42fe2650a47f7d36e3762d59;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 30f1550..bf40267 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -339,7 +339,8 @@ if ls --help 2> /dev/null | grep -q GNU; then elif [[ $OSTYPE == freebsd* ]]; then ls_options=( -G ) fi -if grep --help 2> /dev/null | grep -q GNU; then +if grep --help 2> /dev/null | grep -q GNU || \ + [[ $OSTYPE == freebsd* ]]; then grep_options=( --color=auto ) fi @@ -2418,7 +2419,7 @@ check_com new || alias new=modified # use colors when GNU grep with color-support #a2# Execute \kbd{grep -{}-color=auto} -(( $#grml_options > 0 )) && alias grep='grep '${grml_options:+"${grml_options[*]} "}' +(( $#grep_options > 0 )) && alias grep='grep '${grep_options:+"${grep_options[*]} "} # Translate DE<=>EN # 'translate' looks up fot a word in a file with language-to-language