comparison rc/bashrc @ 524:51a60cc44880

Add hggrep to grep hg repo.
author edogawaconan <me@myconan.net>
date Wed, 09 Jul 2014 14:29:23 +0900
parents b88f621b6bd8
children 0ab0820fd528
comparison
equal deleted inserted replaced
523:b88f621b6bd8 524:51a60cc44880
175 if [ "${_has_posix_grep}" = y ]; then 175 if [ "${_has_posix_grep}" = y ]; then
176 alias fgrep="grep -F" 176 alias fgrep="grep -F"
177 alias egrep="grep -E" 177 alias egrep="grep -E"
178 fi 178 fi
179 179
180 # FIXME: missing test for hg and xargs -0
181 _xargs_grep="${_grep}"
182 [ "${_has_gnu_grep}" = y ] && _xargs_grep="${_grep} --color=always"
183 alias hggrep="hg locate -0 | xargs -0 ${_xargs_grep}"
184 unset _xargs_grep
185
180 unset _has_gnu_ls 186 unset _has_gnu_ls
181 unset _has_gnu_grep 187 unset _has_gnu_grep
182 unset _has_posix_grep 188 unset _has_posix_grep
183 unset _ls 189 unset _ls
184 unset _grep 190 unset _grep