summaryrefslogtreecommitdiff
path: root/src/completion/pass.zsh-completion
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-05-08 03:20:26 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-05-08 03:20:50 +0200
commita9d84341e13419dd300744d96f3327b67cc56928 (patch)
tree93758206fc010e1eded8229a462c9b59b665e7c2 /src/completion/pass.zsh-completion
parentad4fc762750781eac1747cf6d993ccba1434781d (diff)
downloadpass-a9d84341e13419dd300744d96f3327b67cc56928.tar.gz
pass-a9d84341e13419dd300744d96f3327b67cc56928.tar.bz2
pass-a9d84341e13419dd300744d96f3327b67cc56928.zip
zsh: posix compatible sed fix for zsh-completion
This reverts commit 56381287a16792b4c6410f07db68e02f3574c213, and further fixes things.
Diffstat (limited to '')
-rw-r--r--src/completion/pass.zsh-completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/completion/pass.zsh-completion b/src/completion/pass.zsh-completion
index 2f8a2b9..167c283 100644
--- a/src/completion/pass.zsh-completion
+++ b/src/completion/pass.zsh-completion
@@ -110,7 +110,7 @@ _pass_cmd_show () {
_pass_complete_entries_helper () {
local IFS=$'\n'
local prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
- _values -C 'passwords' $(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print | sed -E -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}/\{0,1\}##" -e 's#\.gpg##' | sort)
}
_pass_complete_entries_with_subdirs () {