summaryrefslogtreecommitdiff
path: root/src/completion/pass.bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'src/completion/pass.bash-completion')
-rw-r--r--src/completion/pass.bash-completion2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/completion/pass.bash-completion b/src/completion/pass.bash-completion
index ea31fbf..efd4b70 100644
--- 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))