From 97b0c0f3ed4ced6be2faf1cbf98982c566fd07da Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 18 May 2021 15:23:45 -0700 Subject: [PATCH] add terraform completion --- runcoms/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runcoms/zshrc b/runcoms/zshrc index 62d93ca..df06ab3 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -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" +