Filename for bash completions should match existing conventions #567
Labels
A-completion
Area: completion generator
A-docs
Area: documentation, including docs.rs, readme, examples, etc...
C-enhancement
Category: Raise on the bar on expectations
Milestone
bash-completion expects files installed in
/usr/share/bash-completion/completions/$binname
, named exactly like the binary they provide completions for. (This enables bash-completion's dynamic script loading, so it doesn't need to load all completion scripts at shell startup.) At packaging time, to avoid conflict with binaries or directories of the same name, packaging systems (like Debian's) typically expect files named${binname}.bash-completion
, which they then install to the appropriate directory with the appropriate name. Please consider changing the default name of clap's generated completion scripts to match that pattern.Also, as #566 suggests, consider separating the generation of completions from the writing of files, and expose a function for the former too.
The text was updated successfully, but these errors were encountered: