diff options
Diffstat (limited to 'bash/bash_completion.d/pass.bash')
-rw-r--r-- | bash/bash_completion.d/pass.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bash_completion.d/pass.bash b/bash/bash_completion.d/pass.bash index 176886dc..c1246757 100644 --- a/bash/bash_completion.d/pass.bash +++ b/bash/bash_completion.d/pass.bash @@ -35,8 +35,8 @@ _pass() # Gather the entries and remove their .gpg suffix declare -a entries - entries=("$passdir"/"${COMP_WORDS[COMP_CWORD]}"*/**/*.gpg \ - "$passdir"/"${COMP_WORDS[COMP_CWORD]}"*.gpg) + entries=("$passdir"/"$2"*/**/*.gpg \ + "$passdir"/"$2"*.gpg) entries=("${entries[@]#"$passdir"/}") entries=("${entries[@]%.gpg}") |