golang.plugin.zsh 760 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ## completion
  2. compctl -g "*.go" gofmt # standard go tools
  3. compctl -g "*.go" gccgo # gccgo
  4. # gc
  5. for p in 5 6 8; do
  6. compctl -g "*.${p}" ${p}l
  7. compctl -g "*.go" ${p}g
  8. done
  9. unset p
  10. ## aliases
  11. alias gob='go build'
  12. alias goc='go clean'
  13. alias god='go doc'
  14. alias goe='go env'
  15. alias gof='go fmt'
  16. alias gofa='go fmt ./...'
  17. alias gofx='go fix'
  18. alias gog='go get'
  19. alias goga='go get ./...'
  20. alias goi='go install'
  21. alias gol='go list'
  22. alias gom='go mod'
  23. alias gopa='cd $GOPATH'
  24. alias gopb='cd $GOPATH/bin'
  25. alias gops='cd $GOPATH/src'
  26. alias gor='go run'
  27. alias got='go test'
  28. alias gota='go test ./...'
  29. alias goto='go tool'
  30. alias gotoc='go tool compile'
  31. alias gotod='go tool dist'
  32. alias gotofx='go tool fix'
  33. alias gov='go vet'
  34. alias gove='go version'
  35. alias gow='go work'