add completion for passbmi and passebcont

source https://wiki.archlinux.org/title/Pass
This commit is contained in:
Jakobus Schürz 2023-02-18 21:32:19 +01:00
parent 2cf176234b
commit 8af95ac676

12
bash_completion.d/pass Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
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 _passebcont(){
PASSWORD_STORE_DIR=~/.password-store/ebcont/ _pass
}
complete -o filenames -o nospace -F _passebcont passebcont