Plugin for terraform-docs adds
- autocomplete for commands
- autocomplete for global flags
- autocomplete for command flags
- alias
- Clone repository into
${ZSH_CUSTOM}/plugins
(by default$ZSH_CUSTOM
points to~/.oh-my-zsh/custom
)
git clone https://github.com/jsporna/terraform-docs-zsh-plugin \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/terraform-docs
- Add te plugin to the list of plugins in
~/.zshrc
for Oh My Zsh to load:
plugins=(... terraform-docs)
- Start new terminal session.
- Type
terraform-docs
ortfdocs
into your prompt and hitTAB
to see available completion options