e3c2632c3e
thanks to Ville Skyttä
11 lines
255 B
Bash
11 lines
255 B
Bash
# color-grep initialization
|
|
|
|
# Skip the rest for noninteractive shells.
|
|
[ -z "$PS1" ] && return
|
|
|
|
if [ -r /etc/GREP_COLORS ]; then
|
|
grep -qi "^COLOR.*none" /etc/GREP_COLORS >/dev/null 2>/dev/null && return
|
|
fi
|
|
|
|
alias grep='grep --color=auto' 2>/dev/null
|