mattfoster / zshkit forked from bkerley/zshkit

My way-overdone zsh config scripts

This URL has Read+Write access

zshkit / 05_grep
100644 11 lines (7 sloc) 0.222 kb
1
2
3
4
5
6
7
8
9
10
11
if [[ -x `which ggrep` ]]; then
alias rgrep=`which grep`
alias grep='ggrep --color'
fi
 
# From zsh-lovers: detect gnu grep:
(grep --help 2>/dev/null |grep -- --color) >/dev/null && \
export GREP_OPTIONS='--color=auto'