[PATCH 0/1] bash completion without relying on /etc/bash-completion.d
Lars Flitter
password-store at larsflitter.de
Sun Oct 7 22:34:01 CEST 2018
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
More information about the Password-Store
mailing list