Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.333 kB
if [[ -x `which ggrep` ]]; then
alias rgrep=`which grep`
alias grep='ggrep --color'
fi
output=$(GREP_OPTIONS=test grep --version 2>&1)
if [[ $output == ".*GREP_OPTIONS.*" ]]; then
# From zsh-lovers: detect gnu grep:
(grep --help 2>/dev/null |grep -- --color) >/dev/null && \
export GREP_OPTIONS='--color=auto'
fi
Jump to Line
Something went wrong with that request. Please try again.