grep/colorgrep.csh
Jaroslav Škarvada 4ca30e887d Added script to check whether grep is coloured
Resolves: rhbz#1034631
2014-08-20 15:25:05 +02:00

12 lines
196 B
Tcsh

# color-grep initialization
/usr/libexec/grepconf.sh -c
if ( $status == 1 ) then
exit
endif
alias grep 'grep --color=auto'
alias egrep 'egrep --color=auto'
alias fgrep 'fgrep --color=auto'