Skip to content

Commit cdac4a8

Browse files
committed
Update and improve zsh completion
Added completion of installed crates and unstable flags along with some newer options. Factored out the definition of some common options into variables. Corrected the syntax of option exclusion lists which contained commas --verbose can be repeated so now has * instead of the self-exclusion Internal functions given _cargo prefix as per zsh conventions Completion of normal arguments to many subcommands was missing Pass -s to _arguments to allow clumping of short options, -S for correct handling of -- and -C for correct context handling. For unknown cargo subcommands, it will now try a _cargo-<subcommand> function if found and fallback to _default allowing cargo plugins to define their own completion. This is common zsh practice, see e.g. _git.
1 parent 475a23e commit cdac4a8

File tree

1 file changed

+197
-302
lines changed

1 file changed

+197
-302
lines changed

0 commit comments

Comments
 (0)