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