mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-26 23:00:30 +08:00
feat(golang): add alias for go mod tidy
(#12473)
This commit is contained in:
parent
de2e3d9cd3
commit
efdfe2f29a
@ -25,6 +25,7 @@ plugins=(... golang)
|
|||||||
| goi | `go install` | Compiles and installs packages to $GOPATH |
|
| goi | `go install` | Compiles and installs packages to $GOPATH |
|
||||||
| gol | `go list` | Lists Go packages |
|
| gol | `go list` | Lists Go packages |
|
||||||
| gom | `go mod` | Access to operations on modules |
|
| gom | `go mod` | Access to operations on modules |
|
||||||
|
| gomt | `go mod tidy` | Tidies up the go.mod file |
|
||||||
| gopa | `cd $GOPATH` | Takes you to `$GOPATH` |
|
| gopa | `cd $GOPATH` | Takes you to `$GOPATH` |
|
||||||
| gopb | `cd $GOPATH/bin` | Takes you to `$GOPATH/bin` |
|
| gopb | `cd $GOPATH/bin` | Takes you to `$GOPATH/bin` |
|
||||||
| gops | `cd $GOPATH/src` | Takes you to `$GOPATH/src` |
|
| gops | `cd $GOPATH/src` | Takes you to `$GOPATH/src` |
|
||||||
|
@ -22,6 +22,7 @@ alias goga='go get ./...'
|
|||||||
alias goi='go install'
|
alias goi='go install'
|
||||||
alias gol='go list'
|
alias gol='go list'
|
||||||
alias gom='go mod'
|
alias gom='go mod'
|
||||||
|
alias gomt='go mod tidy'
|
||||||
alias gopa='cd $GOPATH'
|
alias gopa='cd $GOPATH'
|
||||||
alias gopb='cd $GOPATH/bin'
|
alias gopb='cd $GOPATH/bin'
|
||||||
alias gops='cd $GOPATH/src'
|
alias gops='cd $GOPATH/src'
|
||||||
|
Loading…
Reference in New Issue
Block a user