~xdavidwu/dotfiles

6b373da22f0b68ada1acbe11af1e54037caa1394 — Pinghao Wu 10 months ago 4c0bd72
gogrep: trim home
1 files changed, 1 insertions(+), 1 deletions(-)

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