summaryrefslogtreecommitdiff
path: root/plugins/terraform/README.md
diff options
context:
space:
mode:
authortom-apfm <51799266+tom-apfm@users.noreply.github.com>2019-06-26 06:20:41 -0700
committerMarc Cornellà <marc.cornella@live.com>2019-06-26 15:20:41 +0200
commit5f743e1a84b9c23004bd9e4f6995939b7674d4cc (patch)
treefc4c64ef5cd6adfad6bf956f62ef910bd3104365 /plugins/terraform/README.md
parentc105c04b6b1ddb917c12eadacb26c252f44ddfad (diff)
downloadzsh-5f743e1a84b9c23004bd9e4f6995939b7674d4cc.tar.gz
zsh-5f743e1a84b9c23004bd9e4f6995939b7674d4cc.tar.bz2
zsh-5f743e1a84b9c23004bd9e4f6995939b7674d4cc.zip
terraform: update README (#7934)
Add better usage instructions for the plugin which actually work
Diffstat (limited to 'plugins/terraform/README.md')
-rw-r--r--plugins/terraform/README.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/terraform/README.md b/plugins/terraform/README.md
index e5d9e47b6..471aef24e 100644
--- a/plugins/terraform/README.md
+++ b/plugins/terraform/README.md
@@ -10,6 +10,12 @@ Current as of Terraform v0.11.7
### 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
### 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
your .zsh-theme file and in a chosen place insert:
-```
-$FG[045]\
-$(tf_prompt_info)\
+```shell
+PROMPT=$'%{$fg[white]%}$(tf_prompt_info)%{$reset_color%} '
```