Red Hat Bugzilla – Bug 107601
grep supports showing coloured matches but it's not enabled by default
Last modified: 2007-04-18 12:58:36 EDT
Grep supports showing matches in a colour since RedHat 7.3 but it's not enabled
by default like colour support in "ls" is. These attachments can go in
/etc/profile.d and will set the aliases for grep to show coloured matches.
Version-Release number of selected component (if applicable):
Not worth making attachments, I guess.
Put this in /etc/profile.d/colorgrep.csh:
alias grep 'grep --color=tty'
Put this in /etc/profile.d/colorgrep.sh:
alias grep='grep --color=tty' 2>/dev/null
Guaranteed that as soon as this happens there will be bug reports saying to turn
it off. This is a user preference thing I think.