cf483b
# color-grep initialization
cf483b
cf483b
# Skip the rest for noninteractive shells.
cf483b
[ -z "$PS1" ] && return
cf483b
cf483b
if [ -r /etc/GREP_COLORS ]; then
cf483b
    grep -qi "^COLOR.*none" /etc/GREP_COLORS >/dev/null 2>/dev/null && return
cf483b
fi
cf483b
cf483b
alias grep='grep --color=auto' 2>/dev/null
cf483b
alias egrep='egrep --color=auto' 2>/dev/null
cf483b
alias fgrep='fgrep --color=auto' 2>/dev/null