my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0 KiB

3 years ago
  1. # Terraform plugin
  2. Plugin for Terraform, a tool from Hashicorp for managing infrastructure safely and efficiently.
  3. It adds completion for `terraform`, as well as aliases and a prompt function.
  4. To use it, add `terraform` to the plugins array of your `~/.zshrc` file:
  5. ```shell
  6. plugins=(... terraform)
  7. ```
  8. ## Requirements
  9. * [Terraform](https://terraform.io/)
  10. ## Aliases
  11. | Alias | Command |
  12. | ----- | -------------------- |
  13. | `tf` | `terraform` |
  14. | `tfa` | `terraform apply` |
  15. | `tfd` | `terraform destroy` |
  16. | `tff` | `terraform fmt` |
  17. | `tfi` | `terraform init` |
  18. | `tfp` | `terraform plan` |
  19. | `tfv` | `terraform validate` |
  20. ## Prompt function
  21. You can add the current Terraform workspace in your prompt by adding `$(tf_prompt_info)`
  22. to your `PROMPT` or `RPROMPT` variable.
  23. ```sh
  24. RPROMPT='$(tf_prompt_info)'
  25. ```
  26. You can also specify the PREFIX and SUFFIX for the workspace with the following variables:
  27. ```sh
  28. ZSH_THEME_TF_PROMPT_PREFIX="%{$fg[white]%}"
  29. ZSH_THEME_TF_PROMPT_SUFFIX="%{$reset_color%}"
  30. ```