summaryrefslogtreecommitdiff
path: root/contrib/pass.zsh-completion
diff options
context:
space:
mode:
authorTom Vincent <pass@tlvince.com>2013-10-31 16:04:28 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-20 02:24:17 -0600
commit59e0e6eb6f2961a0217af0d7331e5db630fbf2fe (patch)
treef606bfeb2825bd63dc476604e02f9c4c22bc3727 /contrib/pass.zsh-completion
parentea0572cf2cf4980555c7f1dc4cbf9c0962041a6c (diff)
downloadpass-59e0e6eb6f2961a0217af0d7331e5db630fbf2fe.tar.gz
pass-59e0e6eb6f2961a0217af0d7331e5db630fbf2fe.tar.bz2
pass-59e0e6eb6f2961a0217af0d7331e5db630fbf2fe.zip
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 (limited to '')
-rw-r--r--contrib/pass.zsh-completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pass.zsh-completion b/contrib/pass.zsh-completion
index 848bc67..0bb14de 100644
--- 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 () {