]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
Huge tmux-fzf simplification with files quoting
[dotfiles.git] / zsh / .zshrc
index c8591ba5972046a12e51459d5fdbc643e5aeee06..b0c5e6a3c39af07fcc79d5a69a127cc33739248c 100644 (file)
@@ -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
 }