Bruce Dubbs wrote: > i...@higgs.linuxfromscratch.org wrote: >> Author: igor >> Date: Fri Oct 25 02:30:54 2013 >> New Revision: 12060 >> >> Log: >> alias for colored /bin/grep in bash startup scripts as suggested by a >> user > > Is this needed? It seems to be the default on my system. I get color > output without any alias for grep.
Replying to myself. It's not the default, but at some point I added export GREP_OPTIONS='--color=auto' to my ~/.bash_profile. There is also a GREP_COLORS variable. It seems to me that the environment variables would be preferred to alias as they are more general. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page