m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Gomizelj <simongmzlj@gmail.com>2015-12-02 19:29:13 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2016-02-06 20:44:35 +0100
commit96cab3d8e8ff7f236b23c3429fea80a0d25b7837 (patch)
treeeba329a7d04aee27ad07032604da56f5fe4bc9e4 /src
parent76382f160d90b3a6c6599d759138a4d3b2409d4f (diff)
Fix zsh completion when path contains \
Diffstat (limited to 'src')
-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 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 () {