1
0
mirror of https://github.com/golang/go synced 2024-11-19 06:24:41 -07:00
go/misc/zsh/go

15 lines
233 B
Plaintext
Raw Normal View History

# install in /etc/zsh/zshrc or your personal .zshrc
# gc
prefixes=(5 6 8)
for p in $prefixes; do
compctl -g "*.${p}" ${p}l
compctl -g "*.go" ${p}g
done
# standard go tools
compctl -g "*.go" gofmt
# gccgo
compctl -g "*.go" gccgo