aboutsummaryrefslogtreecommitdiffhomepage
path: root/home-manager/config
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-02-25 23:04:50 +0900
committernsfisis <nsfisis@gmail.com>2025-02-25 23:04:50 +0900
commit2e91342f931b8c475d98940dcbabf6ae9ad930b5 (patch)
tree3c18da05dfb7f804f912ba5699db9176b215b424 /home-manager/config
parentce51b4b71f6aae2de1650436ca3cd09ca32c462e (diff)
downloaddotfiles-2e91342f931b8c475d98940dcbabf6ae9ad930b5.tar.gz
dotfiles-2e91342f931b8c475d98940dcbabf6ae9ad930b5.tar.zst
dotfiles-2e91342f931b8c475d98940dcbabf6ae9ad930b5.zip
fish: fix `terraform` wrapper for fish
Diffstat (limited to 'home-manager/config')
-rw-r--r--home-manager/config/fish/config.fish6
1 files changed, 2 insertions, 4 deletions
diff --git a/home-manager/config/fish/config.fish b/home-manager/config/fish/config.fish
index 0d605ed..f881f4e 100644
--- a/home-manager/config/fish/config.fish
+++ b/home-manager/config/fish/config.fish
@@ -111,10 +111,8 @@ end
function terraform
set -l subcommand $argv[1]
if [ $subcommand = "apply" ]
- echo "Are you sure to apply?"
- echo -n "(y/n): "
- read answer
- if [ $answer = "y" ]
+ read --prompt-str "Are you sure to apply? (y/n): " answer
+ if [ $status -eq 0 -a "$answer" = "y" ]
command terraform $argv
else
echo "Cancelled."