zsh widget fix
* fzf-cd-widget properly escapes the special characters
This commit is contained in:
parent
a6f7caf20d
commit
b2ac52462c
@ -196,8 +196,8 @@ bindkey '^T' fzf-file-widget
|
|||||||
|
|
||||||
# ALT-C - cd into the selected directory
|
# ALT-C - cd into the selected directory
|
||||||
fzf-cd-widget() {
|
fzf-cd-widget() {
|
||||||
cd ${$(find * -path '*/\.*' -prune \
|
cd "${$(find * -path '*/\.*' -prune \
|
||||||
-o -type d -print 2> /dev/null | fzf):-.}
|
-o -type d -print 2> /dev/null | fzf):-.}"
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
}
|
}
|
||||||
zle -N fzf-cd-widget
|
zle -N fzf-cd-widget
|
||||||
|
Loading…
x
Reference in New Issue
Block a user