From b2ac52462ccb678d0d5ae1a3d6dd4dab129377de Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Sun, 10 Nov 2013 18:57:47 +0100 Subject: [PATCH] zsh widget fix * fzf-cd-widget properly escapes the special characters --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b8f69e..f14ec94 100644 --- a/README.md +++ b/README.md @@ -196,8 +196,8 @@ bindkey '^T' fzf-file-widget # ALT-C - cd into the selected directory fzf-cd-widget() { - cd ${$(find * -path '*/\.*' -prune \ - -o -type d -print 2> /dev/null | fzf):-.} + cd "${$(find * -path '*/\.*' -prune \ + -o -type d -print 2> /dev/null | fzf):-.}" zle reset-prompt } zle -N fzf-cd-widget