]> Sergey Matveev's repositories - dotfiles.git/blob - zsh/.zsh/rc/010cf.zsh
Splitted zsh rc files
[dotfiles.git] / zsh / .zsh / rc / 010cf.zsh
1 cf() {
2     local dir=$(bfs -L ${1:-.} -mindepth 1 \
3         -path "*/\.git" -prune -o \
4         -path "*/\.redo" -prune -o \
5         -type d -print 2>/dev/null |
6             fzf --height 40% --reverse --preview="tree -CN {}")
7     [[ -z $dir ]] || { print -s cd $dir ; cd $dir }
8 }