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

[zsh] Record cd execution in history (#2193)

This commit is contained in:
octaltree
2020-10-02 22:14:09 +09:00
committed by GitHub
parent 736344e151
commit 82c4af2902

View File

@@ -87,8 +87,9 @@ fzf-cd-widget() {
zle redisplay
return 0
fi
cd "$dir"
BUFFER="cd ${(q)dir}"
unset dir # ensure this doesn't end up appearing in prompt expansion
zle accept-line
local ret=$?
zle fzf-redraw-prompt
return $ret