[PATCH 0/1] bash completion without relying on /etc/bash-completion.d

Brian Exelbierd bex at pobox.com
Sat Jan 19 17:25:54 CET 2019


Was this ever merged?  I like the idea a lot and it seems to allow us to have extensions install with requiring root.



On Sun, Oct 7, 2018, at 9:34 PM, Lars Flitter wrote:
> The bash completion introduced with 6a6222eef23d25bec90015e49bd69c42062434ee 
> requires the extension completion files to be sourced. The idea was to install 
> those files into /etc/bash_completion.d/
> This takes advantage of the fact that bash-completion sources 
> /etc/bash_completion.d/. This is not very clean as the extension completion 
> files are not completions by themselves and therefore should not be sourced
> by bash-completion, but I could not think of another way to make the user
> source files when installing the extension with `make install`.
> Also, debian considers /etc/bash_completion.d/ to be deprecated
> (https://bugs.debian.org/776954)
> The new approach to bash completion does not require sourcing the extension 
> completion file.
> Instead the pass completion now looks for extensions and completes the command
> based on found extensions. Therefore extension command completion now works even
> for extensions that do not bring their own completion.
> For full extension completion a <command>.bash.completion file is sourced.
> Lars Flitter (1):
>   bash completion without relying on /etc/bash-completion.d
>  Makefile                            |  6 +++-
>  src/completion/pass.bash-completion | 46 +++++++++++++++++++++++------
>  2 files changed, 42 insertions(+), 10 deletions(-)
> -- 
> 2.19.1
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store

More information about the Password-Store mailing list