From f5e657f63fe1112ca2d7e5ef5be01b8ba89c774c Mon Sep 17 00:00:00 2001 From: za Date: Thu, 3 Oct 2024 09:26:27 +0700 Subject: [PATCH] feat(opentofu): add `destroy -auto-approve` alias Note: * commit on adding `apply -auto-approve` alias https://github.com/ohmyzsh/ohmyzsh/commit/dae5a4115917e2b9c65d9166c5d64df693f70dd4 * the reason why we use punctuation mark (!) https://github.com/ohmyzsh/ohmyzsh/pull/12704#pullrequestreview-2337662771 --- plugins/opentofu/README.md | 1 + plugins/opentofu/opentofu.plugin.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/opentofu/README.md b/plugins/opentofu/README.md index cc6e94acd..56f116492 100644 --- a/plugins/opentofu/README.md +++ b/plugins/opentofu/README.md @@ -22,6 +22,7 @@ plugins=(... opentofu) | `ttaa` | `tofu apply -auto-approve` | | `ttc` | `tofu console` | | `ttd` | `tofu destroy` | +| `ttd!` | `tofu destroy -auto-approve` | | `ttf` | `tofu fmt` | | `ttfr` | `tofu fmt -recursive` | | `tti` | `tofu init` | diff --git a/plugins/opentofu/opentofu.plugin.zsh b/plugins/opentofu/opentofu.plugin.zsh index 79b102a74..bb65c12e3 100644 --- a/plugins/opentofu/opentofu.plugin.zsh +++ b/plugins/opentofu/opentofu.plugin.zsh @@ -32,6 +32,7 @@ alias tta='tofu apply' alias ttaa='tofu apply -auto-approve' alias ttc='tofu console' alias ttd='tofu destroy' +alias ttd!='tofu destroy -auto-approve' alias ttf='tofu fmt' alias ttfr='tofu fmt -recursive' alias tti='tofu init'