mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 23:30:08 +00:00
terraform: update README (#7934)
Add better usage instructions for the plugin which actually work
This commit is contained in:
parent
c105c04b6b
commit
5f743e1a84
1 changed files with 8 additions and 3 deletions
|
@ -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)\
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue