5f743e1a84b9c23004bd9e4f6995939b7674d4cc

Author
tom-apfm <51799266+tom-apfm@users.noreply.github.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

terraform: update README (#7934)

Add better usage instructions for the plugin which actually work

Diff

 1diff --git a/plugins/terraform/README.md b/plugins/terraform/README.md
 2index e5d9e47b667d68058dffcdd7eb96a55c4addba0b..471aef24ee2e07e29f168237f0aebc245bee57af 100644
 3--- a/plugins/terraform/README.md
 4+++ b/plugins/terraform/README.md
 5@@ -10,6 +10,12 @@ Current as of Terraform v0.11.7
 6 
 7 ### Usage
 8 
 9+To use it, add `terraform` to the plugins array of your `~/.zshrc` file:
10+
11+```shell
12+plugins=(... terraform)
13+```
14+
15  * Type `terraform` into your prompt and hit `TAB` to see available completion options
16 
17 ### Expanding ZSH prompt with current Terraform workspace name
18@@ -17,7 +23,6 @@ Current as of Terraform v0.11.7
19 If you want to get current Terraform workspace name in your ZSH prompt open
20 your .zsh-theme file and in a chosen place insert:
21 
22-```
23-$FG[045]\
24-$(tf_prompt_info)\
25+```shell
26+PROMPT=$'%{$fg[white]%}$(tf_prompt_info)%{$reset_color%} '
27 ```