void-packages/srcpkgs/fzf/files/fzf-cd-widget

4 lines
177 B
Plaintext

cd "${$(command find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -type d -print 2> /dev/null | sed 1d | cut -b3- | fzf +m):-.}"
zle reset-prompt