Skip to content

Commit 1cafbde

Browse files
rkingrking@sharpsaw.org
authored and
rking@sharpsaw.org
committed
Better interpolation on shgrep
1 parent 9058517 commit 1cafbde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/shgrep

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
[ $# -gt 0 ] || (echo Need pattern to match. && false)
33
dirs=~/.sh
44
if expr $SHELL : '.*zsh' >/dev/null; then
5-
dirs="$dirs ~/.zsh"
5+
dirs="$dirs $HOME/.zsh"
66
elif expr $SHELL : '.*bash' >/dev/null; then
7-
dirs="$dirs ~/.zsh"
7+
dirs="$dirs $HOME/.bash"
88
fi
99
cmd='grep -r'
1010
if which ag >/dev/null; then

0 commit comments

Comments
 (0)