Fix for dumb terminals like Vim's.

This commit is contained in:
Sorin Ionescu 2011-02-27 10:13:57 -05:00
commit deab2ed376
8 changed files with 20 additions and 15 deletions

View file

@ -1,6 +1,4 @@
#
# Color grep results
# Examples: http://rubyurl.com/ZXv
#
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;32'
if [[ "$DISABLE_COLOR" != "true" ]]; then
[[ -z "$GREP_OPTIONS" ]] && export GREP_OPTIONS='--color=auto'
[[ -z "$GREP_COLOR" ]] && export GREP_COLOR='1;32'
fi