terraform-target-autocompletion icon indicating copy to clipboard operation
terraform-target-autocompletion copied to clipboard

Support for terraform -install-autocomplete bash

Open shellwhale opened this issue 2 years ago • 1 comments

Currently terraform-target-autocompletion overwrites the bash script generated by terraform -install-autocomplete bash. We need to find a way to make them compatible.

shellwhale avatar Aug 18 '23 11:08 shellwhale

A widely found practice is for the command to provide some completion (bash|zsh|fish|...) kind of subcommand which dumps the corresponding autocomplete shell script, just ready to evaluate it as "$(yourcommand completion bash)". Tools like gh, glab, rclone do it this way, to name a few.

pataquets avatar Jan 30 '25 19:01 pataquets