Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document terraform-docs + ohmyzsh usage #741

Merged
merged 1 commit into from Mar 15, 2024

Conversation

caerulescens
Copy link
Contributor

@caerulescens caerulescens commented Dec 29, 2023

Description of your changes

Adds instructions for configuring terraform-docs completions with ohmyzsh shell.

How has this code been tested

I use terragrunt, terraform, terraform-docs, and ohmyzsh (with terraform plugin)

Versions:

  • os: Debian GNU/Linux 12 (bookworm)
  • terraform-docs: terraform-docs version v0.17.0 795d369 linux/amd64
  • omz: master (667fdbf)

Steps:

  • download latest binary for linux/amd64
  • install terraform-docs into /usr/bin/local
  • omz reload (makes terraform-docs available on $PATH)
  • terraform-docs completion zsh > ~/.oh-my-zsh/completions/_terraform-docs
  • omz reload

Results:

  • Tab completing terra within terraform-docs repository for this pr's fork.
    Screenshot from 2023-12-29 10-38-11

  • Tab completing terraform-docs shows options.
    Screenshot from 2023-12-29 10-40-39

  • Tab/Shift+Tab for selecting options.
    Screenshot from 2023-12-29 10-41-44


closes #742

Signed-off-by: caerulescens <caerulescens.github@proton.me>
@khos2ow khos2ow merged commit 4552a93 into terraform-docs:master Mar 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

docs: instructions for configuring terraform-docs using ohmyzsh shell
2 participants