Skip to content

Commit

Permalink
Wrap terraform completion
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Nov 3, 2023
1 parent 9f51d28 commit 817c9b0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,17 @@ else
echo "* ${AZCLI_COMPLETION:?} is missing" >> ${TODOFILE}
fi

complete -o nospace -C /usr/bin/terraform terraform
# complete -o nospace -C /usr/bin/x x
autocompletions=(
terraform
)
for cmd in ${autocompletions}; do
if command -v "${cmd}" &> /dev/null; then
complete -o nospace -C "/usr/bin/${cmd}" "${cmd}"
else
echo "* ${cmd} is missing" >> ${TODOFILE}
fi
done

ZSH_CONFIG_DIR="${HOME}/.config/zsh"
AUTOCOMPLETE_DIR="${ZSH_CONFIG_DIR}/autocomplete"
Expand Down

0 comments on commit 817c9b0

Please sign in to comment.