Merge remote-tracking branch 'upstream/master'

This commit is contained in:
linsilence 2019-06-30 18:07:37 +08:00
commit ede2828ca1
2 changed files with 9 additions and 3 deletions

View file

@ -21,6 +21,7 @@ plugins=(... golang)
| gog | `go get` | Downloads packages and then installs them to $GOPATH | | gog | `go get` | Downloads packages and then installs them to $GOPATH |
| 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 |
| gop | `cd $GOPATH` | Takes you to $GOPATH | | gop | `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 |

View file

@ -10,6 +10,12 @@ Current as of Terraform v0.11.7
### Usage ### Usage
To use it, add `terraform` to the plugins array of your `~/.zshrc` file:
```shell
plugins=(... terraform)
```
* Type `terraform` into your prompt and hit `TAB` to see available completion options * Type `terraform` into your prompt and hit `TAB` to see available completion options
### Expanding ZSH prompt with current Terraform workspace name ### Expanding ZSH prompt with current Terraform workspace name
@ -17,7 +23,6 @@ Current as of Terraform v0.11.7
If you want to get current Terraform workspace name in your ZSH prompt open If you want to get current Terraform workspace name in your ZSH prompt open
your .zsh-theme file and in a chosen place insert: your .zsh-theme file and in a chosen place insert:
``` ```shell
$FG[045]\ PROMPT=$'%{$fg[white]%}$(tf_prompt_info)%{$reset_color%} '
$(tf_prompt_info)\
``` ```