# HG changeset patch # User edogawaconan # Date 1404831378 -32400 # Node ID b88f621b6bd899ca6c4c0d7c75464ef754b5c450 # Parent a0f4a3e15322383691049b0bd7c620ca6467ace3 Add always-colored grep aliases. diff -r a0f4a3e15322 -r b88f621b6bd8 rc/bashrc --- a/rc/bashrc Sun Jun 29 01:30:18 2014 +0900 +++ b/rc/bashrc Tue Jul 08 23:56:18 2014 +0900 @@ -167,6 +167,10 @@ if [ "${_has_gnu_grep}" = y ]; then alias grep="${_grep} --color=auto" _has_posix_grep=y + + alias cgrep="${_grep} --color=always" + alias cegrep="cgrep -E" + alias cfgrep="cgrep -F" fi if [ "${_has_posix_grep}" = y ]; then alias fgrep="grep -F"