2010-06-11 09:34:46 +00:00
|
|
|
# color-grep initialization
|
|
|
|
|
|
|
|
# Skip the rest for noninteractive shells.
|
|
|
|
[ -z "$PS1" ] && return
|
|
|
|
|
2011-04-04 08:32:39 +00:00
|
|
|
if [ -r /etc/GREP_COLORS ]; then
|
|
|
|
grep -qi "^COLOR.*none" /etc/GREP_COLORS >/dev/null 2>/dev/null && return
|
2010-06-11 09:34:46 +00:00
|
|
|
fi
|
|
|
|
|
2010-06-07 15:25:12 +00:00
|
|
|
alias grep='grep --color=auto' 2>/dev/null
|