cargo-feature icon indicating copy to clipboard operation
cargo-feature copied to clipboard

Support shell autocompletions

Open Riey opened this issue 4 years ago • 2 comments

Like bash, zsh

Riey avatar Sep 22 '21 02:09 Riey

I would like to implement this feature. However AFAIK it's not possible to install shell completions automatically(because there is no post-install hook in cargo to execute a custom script). So there must be some command to install them on demand. Maybe something like this cargo feature --install-shell-completions . What do you think?

kjamrozy avatar Oct 09 '22 20:10 kjamrozy

I would like to implement this feature. However AFAIK it's not possible to install shell completions automatically(because there is no post-install hook in cargo to execute a custom script). So there must be some command to install them on demand. Maybe something like this cargo feature --install-shell-completions . What do you think?

I agree. Maybe package manager do that automatically for nix and arch users.

Riey avatar Oct 09 '22 22:10 Riey