From 96cab3d8e8ff7f236b23c3429fea80a0d25b7837 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Wed, 2 Dec 2015 19:29:13 -0500 Subject: Fix zsh completion when path contains \ --- src/completion/pass.zsh-completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/completion/pass.zsh-completion') diff --git a/src/completion/pass.zsh-completion b/src/completion/pass.zsh-completion index 9bb3f97..6a33d75 100644 --- a/src/completion/pass.zsh-completion +++ b/src/completion/pass.zsh-completion @@ -114,7 +114,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 2>/dev/null | sed -e "s#${prefix}/\{0,1\}##" -e 's#\.gpg##' | sort):-""} + _values -C 'passwords' ${$(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print 2>/dev/null | sed -e "s#${prefix}/\{0,1\}##" -e 's#\.gpg##' -e 's#\\#\\\\#' | sort):-""} } _pass_complete_entries_with_subdirs () { -- cgit v1.2.3