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