From 56381287a16792b4c6410f07db68e02f3574c213 Mon Sep 17 00:00:00 2001 From: Kyle Marek-Spartz Date: Mon, 5 May 2014 15:16:49 -0500 Subject: zsh-completion: regression when using BSD sed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/completion/pass.zsh-completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () { -- cgit v1.2.3