~xdavidwu/dotfiles

d8f9c39ad21e6073fbc113872c6f0c6f7f05aaee — Pinghao Wu 10 months ago 6b373da
gogrep: trim pwd
1 files changed, 2 insertions(+), 1 deletions(-)

M .local/bin/gogrep
M .local/bin/gogrep => .local/bin/gogrep +2 -1
@@ 1,3 1,4 @@
#!/usr/lib/9base/bin/rc -e
ifs='
' grep '--color=always' $* `{go list -deps -f '{{range .GoFiles}}{{printf "%s/%s\n" $.Dir .}}{{end}}' ./...} | sed 's|'^$home^'|~|'
' grep '--color=always' $* `{go list -deps -f '{{range .GoFiles}}{{printf "%s/%s\n" $.Dir .}}{{end}}' ./...} |
	sed 's|'^`{pwd}^'/||;s|'^$home^'|~|'