Mercurial > ec-dotfiles
changeset 523:b88f621b6bd8
Add always-colored grep aliases.
author | edogawaconan <me@myconan.net> |
---|---|
date | Tue, 08 Jul 2014 23:56:18 +0900 |
parents | a0f4a3e15322 |
children | 51a60cc44880 |
files | rc/bashrc |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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"