source completion for pass only, if it exists
This commit is contained in:
parent
8af95ac676
commit
77446d1ab8
1 changed files with 14 additions and 10 deletions
|
@ -1,12 +1,16 @@
|
|||
#!/bin/bash
|
||||
source /usr/share/bash-completion/completions/pass
|
||||
#/usr/share/bash-completion/completions/pass!/bin/bash
|
||||
loginfo "does pass exist? $(whereis pass)"
|
||||
if [ -e /usr/share/bash-completion/completions/pass ]
|
||||
then
|
||||
source /usr/share/bash-completion/completions/pass
|
||||
|
||||
function _passbmi(){
|
||||
PASSWORD_STORE_DIR=~/.password-store/bmi/ _pass
|
||||
}
|
||||
complete -o filenames -o nospace -F _passbmi passbmi
|
||||
function _passbmi(){
|
||||
PASSWORD_STORE_DIR=~/.password-store/bmi/ _pass
|
||||
}
|
||||
complete -o filenames -o nospace -F _passbmi passbmi
|
||||
|
||||
function _passebcont(){
|
||||
PASSWORD_STORE_DIR=~/.password-store/ebcont/ _pass
|
||||
}
|
||||
complete -o filenames -o nospace -F _passebcont passebcont
|
||||
function _passebcont(){
|
||||
PASSWORD_STORE_DIR=~/.password-store/ebcont/ _pass
|
||||
}
|
||||
complete -o filenames -o nospace -F _passebcont passebcont
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue