add terraform completion

main
Alpha Chen 3 years ago
parent 2fbe4702c5
commit c00d0adf4f
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -52,9 +52,10 @@ if [ -e $brew_prefix/opt/fzf/shell/completion.zsh ]; then
source $brew_prefix/opt/fzf/shell/completion.zsh
fi
if [ -e $brew_prefix/bin/terraform ]; then
[ -x "$(command -v kubectl)" ] && source <(kubectl completion zsh)
if [ -x "$(command -v terraform)" ]; then
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C $brew_prefix/bin/terraform terraform
complete -o nospace -C /opt/homebrew/bin/terraform terraform
fi
if [ $commands[fzf] ]; then
@ -154,4 +155,3 @@ if [ $commands[exa] ]; then
fi
[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"

Loading…
Cancel
Save