Mic92 / nixpkgs-review

Review pull-requests on https://github.com/NixOS/nixpkgs
MIT License
356 stars 59 forks source link

Add shell completion #294

Closed JamieMagee closed 11 months ago

JamieMagee commented 1 year ago

It would be nice to have shell completion (tab completion/autocompletion/whatever you want to call it)

Mic92 commented 1 year ago

For zsh someone wrote it: https://github.com/spwhitt/nix-zsh-completions Whats the best way to autogenerate this for python's argparse?

JamieMagee commented 1 year ago

The solution appears to be argcomplete.

Mic92 commented 1 year ago

I would accept a PR that adds a script to generate the completion script so that we can check it into the git repo.