This requirement leads to non-working bash completion in many cases,
with a lot of head-scratching.

This issue doesn't exist in fish and zsh where this is already done this
way.
---
 src/completion/pass.bash-completion | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/completion/pass.bash-completion
b/src/completion/pass.bash-completion index 456485b..f773d1d 100644
--- a/src/completion/pass.bash-completion
+++ b/src/completion/pass.bash-completion
@@ -5,13 +5,13 @@
 # This file is licensed under the GPLv2+. Please see COPYING for more
information. 
 _pass_complete_entries () {
-       prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store/}"
+       prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
        prefix="${prefix%/}/"
        suffix=".gpg"
        autoexpand=${1:-0}
 
        local IFS=$'\n'
-       local items=($(compgen -f $prefix$cur))
+       local items=($(compgen -f $prefix/$cur))
 
        # Remember the value of the first item, to see if it is a
directory. If # it is a directory, then don't add a space to the
completion
-- 
2.10.0

Attachment: pgp6FWTzk1Pwk.pgp
Description: OpenPGP digital signature

_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to