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 59e0e6eb6f2961a0217af0d7331e5db630fbf2fe
parent ea0572cf2cf4980555c7f1dc4cbf9c0962041a6c
Author: Tom Vincent <pass@tlvince.com>
Date:   Thu, 31 Oct 2013 16:04:28 +0000

Follow symlinks in Zsh completion

If `PASSWORD_STORE_DIR:-$HOME/.password-store` is a symlink, Zsh throws:
`_values:compvalues:10: not enough arguments`.

Passing `-L` to find(1) fixes this.

Diffstat:
Mcontrib/pass.zsh-completion | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/pass.zsh-completion b/contrib/pass.zsh-completion @@ -98,7 +98,7 @@ _pass_cmd_show () { _pass_complete_entries_helper () { local IFS=$'\n' local prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}" - _values -C 'passwords' $(find "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print | sed -e "s#${prefix}.##" -e 's#\.gpg##' | sort) + _values -C 'passwords' $(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print | sed -e "s#${prefix}.##" -e 's#\.gpg##' | sort) } _pass_complete_entries_with_subdirs () {