Skip to content
Snippets Groups Projects
Commit b2ac5246 authored by Wojciech Siewierski's avatar Wojciech Siewierski
Browse files

zsh widget fix

* fzf-cd-widget properly escapes the special characters
parent a6f7caf2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment