add terraform completion

main
Alpha Chen 4 years ago
parent 7a3e6bb7da
commit 25c1f87154
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -42,6 +42,11 @@ if [ -e /usr/local/opt/fzf/shell/completion.zsh ]; then
source /usr/local/opt/fzf/shell/completion.zsh source /usr/local/opt/fzf/shell/completion.zsh
fi 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 if [ $commands[fzf] ]; then
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border' export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
export FZF_DEFAULT_COMMAND="rg --files" export FZF_DEFAULT_COMMAND="rg --files"
@ -79,3 +84,4 @@ if [ $commands[fzf] ]; then
fi fi
[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local" [[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"

Loading…
Cancel
Save