comparison rc/bashrc @ 523:b88f621b6bd8

Add always-colored grep aliases.
author edogawaconan <me@myconan.net>
date Tue, 08 Jul 2014 23:56:18 +0900
parents fb2d37acca81
children 51a60cc44880
comparison
equal deleted inserted replaced
522:a0f4a3e15322 523:b88f621b6bd8
165 export LS_COLORS 165 export LS_COLORS
166 fi 166 fi
167 if [ "${_has_gnu_grep}" = y ]; then 167 if [ "${_has_gnu_grep}" = y ]; then
168 alias grep="${_grep} --color=auto" 168 alias grep="${_grep} --color=auto"
169 _has_posix_grep=y 169 _has_posix_grep=y
170
171 alias cgrep="${_grep} --color=always"
172 alias cegrep="cgrep -E"
173 alias cfgrep="cgrep -F"
170 fi 174 fi
171 if [ "${_has_posix_grep}" = y ]; then 175 if [ "${_has_posix_grep}" = y ]; then
172 alias fgrep="grep -F" 176 alias fgrep="grep -F"
173 alias egrep="grep -E" 177 alias egrep="grep -E"
174 fi 178 fi