Skip to content

Instantly share code, notes, and snippets.

@prisoner
Created July 24, 2012 06:37
Show Gist options
  • Save prisoner/3168408 to your computer and use it in GitHub Desktop.
Save prisoner/3168408 to your computer and use it in GitHub Desktop.
_go
#compdef go
_arguments "1:commands:((\
build\:'compile packages and dependencies' \
clean\:'remove object files' \
doc\:'run godoc on package sources' \
env\:'print Go environment information' \
fix\:'run go tool fix on packages' \
fmt\:'run gofmt on package sources' \
get\:'download and install packages and dependencies' \
install\:'compile and install packages and dependencies' \
list\:'list packages' \
run\:'compile and run Go program' \
test\:'test packages' \
tool\:'run specified go tool' \
version\:'print Go version' \
vet\:'run go tool vet on packages' \
))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment