Replace grep command with grep -n --colour?
is there anything similar for rgrep auto color?
add this line to your .bashrc in your home directory
alias rgrep="grep -n --colour"
Just execute the following lines and modify one line as describe bellow
mkdir -p ~/bin
cd ~/bin
wget http://sdjf.esmartdesign.com/files/rgrep
chmod +x rgrep
Edit it and modify the line
args=${args:--His}
To this version:
args="${args:--His} --color=auto"
To complete, if not working (command not found), add
into one of the autoloaded configuration file (~/.bashrc or ~/.zshrc or else depending of your distribution)
– mnono Jan 02 '15 at 10:13