~xdavidwu/dotfiles

17a7bfc99193977b3489fab3b3198688b334c6ae — Pinghao Wu 1 year, 3 months ago 3861061
bash: add gogrep
1 files changed, 4 insertions(+), 0 deletions(-)

M .bashrc
M .bashrc => .bashrc +4 -0
@@ 123,6 123,10 @@ st() {
	head -c 100M /dev/urandom | curl -q "$ST_SERVER" -m 10 --data-binary @- >/dev/null
}

gogrep() {
	IFS=$'\n' grep "$@" $(go list -deps -f '{{range .GoFiles}}{{printf "%s/%s\n" $.Dir .}}{{end}}')
}

# application envs
export GPG_TTY=$(tty 2>/dev/null)