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

8 lines
288 B
Plaintext
Raw Normal View History

2015-06-06 22:50:58 +02:00
__fzfcmd() {
[ ${FZF_TMUX:-1} -eq 1 ] && echo "fzf-tmux -d${FZF_TMUX_HEIGHT:-40%}" || echo "fzf"
}
2015-06-23 22:27:40 +02:00
cd "${$(command \find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
2015-06-06 22:50:58 +02:00
-o -type d -print 2> /dev/null | sed 1d | cut -b3- | $(__fzfcmd) +m):-.}"
2015-04-17 23:44:53 +02:00
zle reset-prompt