password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 0ccb898021f8838ba3bc8ed0a256899f9b571a81
parent 18f36f05367f78820632870bff09bf80685d115b
Author: Samuel Lethiec <samuel.lethiec@intelunix.fr>
Date:   Mon, 11 May 2015 13:43:38 +0200

bashcomp: PASSWORD_STORE_DIR env var does not necessarily have a trailing slash

Diffstat:
Msrc/completion/pass.bash-completion | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/completion/pass.bash-completion b/src/completion/pass.bash-completion @@ -6,6 +6,7 @@ _pass_complete_entries () { prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store/}" + prefix="${prefix%/}/" suffix=".gpg" autoexpand=${1:-0} @@ -42,6 +43,7 @@ _pass_complete_entries () { _pass_complete_folders () { prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store/}" + prefix="${prefix%/}/" local IFS=$'\n' local items=($(compgen -d $prefix$cur))