theskumar / python-dotenv

Reads key-value pairs from a .env file and can set them as environment variables. It helps in developing applications following the 12-factor principles.
https://saurabh-kumar.com/python-dotenv/
BSD 3-Clause "New" or "Revised" License
7.68k stars 431 forks source link

Bash Autocomplete for dotenv CLI command #353

Open ShivKJ opened 3 years ago

ShivKJ commented 3 years ago

Hi,

How can we enable bash completion for the dotenv CLI command?

theskumar commented 2 years ago

@ShivKJ As the project usage click under the hood. You can try using https://click.palletsprojects.com/en/8.1.x/shell-completion/ until any official supported shell completion is available.

Let me know if that doesn't work.

Cheers.

theskumar commented 1 year ago

TODO: add docs on how to enable autocompletion in different shell as per the guidance on the click documentation. https://click.palletsprojects.com/en/8.1.x/shell-completion/