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
1 changed files with 2 additions and 2 deletions

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