~xdavidwu/dotfiles

3877411ba024484b9300e19c12cc0d114e2828f1 — Pinghao Wu 10 months ago d8f9c39
gogrep: sort
1 files changed, 2 insertions(+), 2 deletions(-)

M .local/bin/gogrep
M .local/bin/gogrep => .local/bin/gogrep +2 -2
@@ 1,4 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|'^`{pwd}^'/||;s|'^$home^'|~|'
' grep '--color=always' $* `{go list -deps -f '{{range .GoFiles}}{{printf "%s/%s\n" $.Dir .}}{{end}}' ./... | sort} |
	sed 's|'^`{pwd}^'/||;s|'^$home^'/|~/|'