Some maintenance work around bashrc files

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-09-03 14:32:15 +00:00
parent e34c3dd5ed
commit 094b8a0009
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
10 changed files with 44 additions and 35 deletions

View file

@ -0,0 +1,11 @@
_gopass_bash_autocomplete() {
local cur opts base
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion )
local IFS=$'\n'
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
}
complete -F _gopass_bash_autocomplete gopass