m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

zsh widget fix

* fzf-cd-widget properly escapes the special characters
This commit is contained in:
Wojciech Siewierski
2013-11-10 18:57:47 +01:00
parent a6f7caf20d
commit b2ac52462c

View File

@@ -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