Mercurial > ec-dotfiles
comparison rc/bashrc @ 749:3cacb4270864 default tip
[bashrc] hg grep now does the expected thing, no need for custom alias
| author | nanaya <me@nanaya.net> |
|---|---|
| date | Tue, 02 Sep 2025 22:43:45 +0900 |
| parents | 47da3cb3eafa |
| children |
comparison
equal
deleted
inserted
replaced
| 748:49c57e26fc24 | 749:3cacb4270864 |
|---|---|
| 177 if [ "${_has_posix_grep}" = y ]; then | 177 if [ "${_has_posix_grep}" = y ]; then |
| 178 alias fgrep="grep -F" | 178 alias fgrep="grep -F" |
| 179 alias egrep="grep -E" | 179 alias egrep="grep -E" |
| 180 fi | 180 fi |
| 181 | 181 |
| 182 # FIXME: missing test for hg and xargs -0 | |
| 183 _xargs_grep="${_grep}" | |
| 184 [ "${_has_gnu_grep}" = y ] && _xargs_grep="${_grep} --color=always" | |
| 185 alias hggrep="hg locate -0 | xargs -0 ${_xargs_grep}" | |
| 186 unset _xargs_grep | |
| 187 | |
| 188 unset _has_gnu_ls | 182 unset _has_gnu_ls |
| 189 unset _has_gnu_grep | 183 unset _has_gnu_grep |
| 190 unset _has_posix_grep | 184 unset _has_posix_grep |
| 191 unset _ls | 185 unset _ls |
| 192 unset _grep | 186 unset _grep |
