3 Plugin for Terraform, a tool from Hashicorp for managing infrastructure safely and efficiently.
4 It adds completion for `terraform`, as well as aliases and a prompt function.
6 To use it, add `terraform` to the plugins array of your `~/.zshrc` file:
9 plugins=(... terraform)
14 * [Terraform](https://terraform.io/)
19 | ----- | -------------------- |
20 | `tf` | `terraform` |
21 | `tfa` | `terraform apply` |
22 | `tfd` | `terraform destroy` |
23 | `tff` | `terraform fmt` |
24 | `tfi` | `terraform init` |
25 | `tfo` | `terraform output` |
26 | `tfp` | `terraform plan` |
27 | `tfv` | `terraform validate` |
31 You can add the current Terraform workspace in your prompt by adding `$(tf_prompt_info)`
32 to your `PROMPT` or `RPROMPT` variable.
35 RPROMPT='$(tf_prompt_info)'
38 You can also specify the PREFIX and SUFFIX for the workspace with the following variables:
41 ZSH_THEME_TF_PROMPT_PREFIX="%{$fg[white]%}"
42 ZSH_THEME_TF_PROMPT_SUFFIX="%{$reset_color%}"