dotfiles.2022/_home/dot_sz.shrc.d/bash.post/99_terraform.complete

5 lines
126 B
Plaintext

TERRAFORM_BIN=$(which-command terraform | head -1)
if [[ -x $TERRAFORM_BIN ]]; then
complete -C $TERRAFORM_BIN terraform
fi