Diff
1diff --git a/plugins/golang/README.md b/plugins/golang/README.md
2index 8bfe3ae3dcfd6d884406811565338b8d3f3b3505..979c89010dda2abfc76135b28dd58ec7522b9fe1 100644
3--- a/plugins/golang/README.md
4+++ b/plugins/golang/README.md
5@@ -11,27 +11,27 @@ plugins=(... golang)
6
7 ## Aliases
8
9-| Alias | Command | Description |
10-| ------- | ----------------------- | ------------------------------------------------------------- |
11-| gob | `go build` | Build your code |
12-| goc | `go clean` | Removes object files from package source directories |
13-| god | `go doc` | Prints documentation comments |
14-| gof | `go fmt` | Gofmt formats (aligns and indents) Go programs. |
15-| gofa | `go fmt ./...` | Run go fmt for all packages in current directory, recursively |
16-| gofx | `go fix` | Update packages to use a new API |
17-| gog | `go get` | Downloads packages and then installs them to $GOPATH |
18-| gog | `go get ./...` | Installs all dependencies in current directory, recursively |
19-| goi | `go install` | Compiles and installs packages to $GOPATH |
20-| gol | `go list` | Lists Go packages |
21-| gom | `go mod` | Access to operations on modules |
22-| gop | `cd $GOPATH` | Takes you to $GOPATH |
23-| gopb | `cd $GOPATH/bin` | Takes you to $GOPATH/bin |
24-| gops | `cd $GOPATH/src` | Takes you to $GOPATH/src |
25-| gor | `go run` | Compiles and runs your code |
26-| got | `go test` | Runs tests |
27-| gota | `go test ./...` | Runs tests in all subdirectories |
28-| goto | `go tool` | Prints all the available tools |
29-| gotoc | `go tool compile` | Generates object file |
30-| gotod | `go tool dist` | Utility to bootstrap, build and test go runtime |
31-| gotofx | `go tool fix` | Fixes an application to use newer features |
32-| gov | `go vet` | Vet examines Go source code and reports suspicious constructs |
33+| Alias | Command | Description |
34+| ------ | ----------------- | ------------------------------------------------------------- |
35+| gob | `go build` | Build your code |
36+| goc | `go clean` | Removes object files from package source directories |
37+| god | `go doc` | Prints documentation comments |
38+| gof | `go fmt` | Gofmt formats (aligns and indents) Go programs. |
39+| gofa | `go fmt ./...` | Run go fmt for all packages in current directory, recursively |
40+| gofx | `go fix` | Update packages to use a new API |
41+| gog | `go get` | Downloads packages and then installs them to $GOPATH |
42+| gog | `go get ./...` | Installs all dependencies in current directory, recursively |
43+| goi | `go install` | Compiles and installs packages to $GOPATH |
44+| gol | `go list` | Lists Go packages |
45+| gom | `go mod` | Access to operations on modules |
46+| gopa | `cd $GOPATH` | Takes you to `$GOPATH` |
47+| gopb | `cd $GOPATH/bin` | Takes you to `$GOPATH/bin` |
48+| gops | `cd $GOPATH/src` | Takes you to `$GOPATH/src` |
49+| gor | `go run` | Compiles and runs your code |
50+| got | `go test` | Runs tests |
51+| gota | `go test ./...` | Runs tests in all subdirectories |
52+| goto | `go tool` | Prints all the available tools |
53+| gotoc | `go tool compile` | Generates object file |
54+| gotod | `go tool dist` | Utility to bootstrap, build and test go runtime |
55+| gotofx | `go tool fix` | Fixes an application to use newer features |
56+| gov | `go vet` | Vet examines Go source code and reports suspicious constructs |
57diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh
58index 3ef9da6aa87226ef355f5fd3da25c88ccb178b7c..6d1eb40c2452edda8aeee5bf23fd97f1344d62cb 100644
59--- a/plugins/golang/golang.plugin.zsh
60+++ b/plugins/golang/golang.plugin.zsh
61@@ -1,11 +1,9 @@
62-# install in /etc/zsh/zshrc or your personal .zshrc
63-
64 # gc
65-prefixes=(5 6 8)
66-for p in $prefixes; do
67- compctl -g "*.${p}" ${p}l
68- compctl -g "*.go" ${p}g
69+for p in 5 6 8; do
70+ compctl -g "*.${p}" ${p}l
71+ compctl -g "*.go" ${p}g
72 done
73+unset p
74
75 # standard go tools
76 compctl -g "*.go" gofmt
77@@ -268,7 +266,7 @@ alias goga='go get ./...'
78 alias goi='go install'
79 alias gol='go list'
80 alias gom='go mod'
81-alias gop='cd $GOPATH'
82+alias gopa='cd $GOPATH'
83 alias gopb='cd $GOPATH/bin'
84 alias gops='cd $GOPATH/src'
85 alias gor='go run'