grep/colorgrep.csh
Jaroslav Škarvada d1cc860577 - Colors can be globally disabled via /etc/GREP_COLORS (#602867)
- Fixed indentation in spec
- Fixed defattr in spec
2010-06-11 09:34:46 +00:00

17 lines
299 B
Tcsh

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