add terraform completion

Alpha Chen 4 years ago
parent 608435b957
commit ba4c20236b

@ -42,6 +42,11 @@ if [ -e /usr/local/opt/fzf/shell/completion.zsh ]; then
source /usr/local/opt/fzf/shell/completion.zsh
fi
if [ -e /usr/local/bin/terraform ]; then
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/terraform terraform
fi
if [ $commands[fzf] ]; then
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
export FZF_DEFAULT_COMMAND="rg --files"
@ -79,3 +84,4 @@ if [ $commands[fzf] ]; then
fi
[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"

Loading…
Cancel
Save