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