This commit is contained in:
ANDI FAUZAN HEDIANTORO 2026-06-15 11:51:43 +02:00 committed by GitHub
commit d815ebe5e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,7 @@ plugins=(... terraform)
| `tfa` | `terraform apply` |
| `tfa!` | `terraform apply -auto-approve` |
| `tfap` | `terraform apply -parallelism=1` |
| `tfapp` | `terraform apply tfplan` |
| `tfc` | `terraform console` |
| `tfd` | `terraform destroy` |
| `tfd!` | `terraform destroy -auto-approve` |
@ -33,6 +34,7 @@ plugins=(... terraform)
| `tfiur` | `terraform init -upgrade -reconfigure` |
| `tfo` | `terraform output` |
| `tfp` | `terraform plan` |
| `tfpo` | `terraform plan -out tfplan` |
| `tfv` | `terraform validate` |
| `tfs` | `terraform state` |
| `tft` | `terraform test` |

View File

@ -1,3 +1,8 @@
# Return immediately if terraform is not found
if (( ! ${+commands[terraform]} )); then
return
fi
function tf_prompt_info() {
# dont show 'default' workspace in home dir
[[ "$PWD" != ~ ]] || return