X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=zsh%2F.zshrc;h=79e2a928302f778db97e9e095efe83b75debc5e7;hb=1c0f50e134c6368d9365e50f8809686fa34c1d5b;hp=778759a9695789328f15cd2cebb14178e412dae2;hpb=0553bcb0acfb2e13935b7d3520c0fb11775fb4e0;p=dotfiles.git diff --git a/zsh/.zshrc b/zsh/.zshrc index 778759a..79e2a92 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -215,7 +215,7 @@ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=cyan" # fzf {{{ export FZF_DEFAULT_OPTS="--color=16 --info=inline" cf() { - local dir=$(find ${1:-.} -mindepth 1 -path "*/\.git" -prune -o -type d -print | + local dir=$(find -L ${1:-.} -mindepth 1 -path "*/\.git" -prune -o -type d -print | fzf --height 40% --reverse --preview="tree -CN {}") [[ -z $dir ]] || cd $dir }