grep/colorgrep.sh
Jaroslav Škarvada d1d59d992d Removed coloring restriction for interactive shells
Resolves: rhbz#1034631
2013-11-26 16:56:53 +01:00

10 lines
277 B
Bash

# color-grep initialization
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
alias egrep='egrep --color=auto' 2>/dev/null
alias fgrep='fgrep --color=auto' 2>/dev/null