This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/functions/grep.zsh

13 lines
260 B
Bash
Raw Normal View History

if [[ "$DISABLE_COLOR" != 'true' ]]; then
if [[ -z "$GREP_OPTIONS" ]]; then
export GREP_OPTIONS='--color=auto'
fi
if [[ -z "$GREP_COLOR" ]]; then
export GREP_COLOR='37;45'
fi
else
export GREP_OPTIONS='--color=none'
export GREP_COLOR=''
2011-02-27 10:13:57 -05:00
fi