summaryrefslogtreecommitdiff
path: root/src/completion
diff options
context:
space:
mode:
authorKyle Marek-Spartz <kyle.marek.spartz@gmail.com>2014-05-05 15:16:49 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2014-05-06 16:08:05 +0200
commit56381287a16792b4c6410f07db68e02f3574c213 (patch)
tree583d059ac3f00f213f4b716c3a10285c3fead187 /src/completion
parent913e40b06e1d59f84147fb0b72cfe0dd59e25987 (diff)
downloadpass-56381287a16792b4c6410f07db68e02f3574c213.tar.gz
pass-56381287a16792b4c6410f07db68e02f3574c213.tar.bz2
pass-56381287a16792b4c6410f07db68e02f3574c213.zip
zsh-completion: regression when using BSD sed
Made sed expression GNU and BSD compatible. A recent change in pass.zsh-completion broke autocompletion when using BSD sed. I’ve made the relevant sed expression compatible with GNU and BSD sed. Previous change with regression: http://lists.zx2c4.com/pipermail/password-store/2014-April/000773.html http://git.zx2c4.com/password-store/commit/src/completion/pass.zsh-completion?id=f82e9d6cf3bc3a12bdfce89bf319d76f79e66efc
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 4c7548c..2f8a2b9 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 "s#${prefix}/\\?##" -e 's#\.gpg##' | sort)
+ _values -C 'passwords' $(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print | sed -E -e "s#${prefix}/?##" -e 's#\.gpg##' | sort)
}
_pass_complete_entries_with_subdirs () {