-alias -g PE="| pe"
-
-export FZF_DEFAULT_OPTS="--color=16 --info=inline --preview='less -N -S {}'"
-
-_fzf_find() {
- find . \( -path "*/\.git" -o -fstype devfs -o -fstype procfs \) -prune \
- -o -type d -print $@ 2>/dev/null | cut -b3-
+cf() {
+ local dir=$(find -L ${1:-.} -mindepth 1 -path "*/\.git" -prune -o -type d -print |
+ fzf --height 40% --reverse --preview="tree -CN {}")
+ [[ -z $dir ]] || { print -s cd $dir ; cd $dir }