浏览代码

terraform: update README (#7934)

Add better usage instructions for the plugin which actually work
tom-apfm 5 年之前
父节点
当前提交
5f743e1a84
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. 8 3
      plugins/terraform/README.md

+ 8 - 3
plugins/terraform/README.md

@@ -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:
 
 
-```
-$FG[045]\
-$(tf_prompt_info)\
+```shell
+PROMPT=$'%{$fg[white]%}$(tf_prompt_info)%{$reset_color%} '
 ```
 ```