README.md 693 Bytes
Newer Older
1
## Terraform oh-my-zsh plugin
gkze's avatar
gkze committed
2
3
4

Plugin for Terraform, a tool from Hashicorp for managing infrastructure safely and efficiently.

5
6
Current as of Terraform v0.11.7

gkze's avatar
gkze committed
7
8
### Requirements

9
 * [Terraform](https://terraform.io/)
gkze's avatar
gkze committed
10
11
12

### Usage

tom-apfm's avatar
tom-apfm committed
13
14
15
16
17
18
To use it, add `terraform` to the plugins array of your `~/.zshrc` file:

```shell
plugins=(... terraform)
```

gkze's avatar
gkze committed
19
 * Type `terraform` into your prompt and hit `TAB` to see available completion options
Maciej Lasyk's avatar
Maciej Lasyk committed
20
21
22

### Expanding ZSH prompt with current Terraform workspace name

23
24
If you want to get current Terraform workspace name in your ZSH prompt open
your .zsh-theme file and in a chosen place insert:
Maciej Lasyk's avatar
Maciej Lasyk committed
25

tom-apfm's avatar
tom-apfm committed
26
27
```shell
PROMPT=$'%{$fg[white]%}$(tf_prompt_info)%{$reset_color%} '
Maciej Lasyk's avatar
Maciej Lasyk committed
28
```