grep/colorgrep.csh

14 lines
271 B
Tcsh
Raw Normal View History

# color-grep initialization
if ( -r /etc/GREP_COLORS ) then
set color_none=`sed -n '/^COLOR.*none/Ip' < /etc/GREP_COLORS`
if ( "$color_none" != '' ) then
unset color_none
exit
endif
unset color_none
endif
alias grep 'grep --color=auto'