ohmyzsh/lib/grep.zsh
Ashley Dev 415bdbfe6d Merge branch 'plugin-git' into merge
Conflicts:
	custom/aliases.zsh
	plugins/git/git-aliases.plugin.zsh
	plugins/git/git-prompt-old.plugin.zsh
	plugins/git/git-prompt.plugin.zsh
	plugins/git/git.plugin.zsh
	themes/ashleydev.zsh-theme
2011-07-06 20:54:27 -07:00

12 lines
259 B
Bash

if [[ "$DISABLE_COLOR" != 'true' ]]; then
if [[ -z "$GREP_OPTIONS" ]]; then
export GREP_OPTIONS='--color=auto'
fi
if [[ -z "$GREP_COLOR" ]]; then
export GREP_COLOR="1;32"
fi
else
export GREP_OPTIONS='--color=none'
export GREP_COLOR=''
fi