From: Sergey Matveev Date: Wed, 2 Jun 2021 10:05:26 +0000 (+0300) Subject: Following symlinks type in cf() X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=1c0f50e134c6368d9365e50f8809686fa34c1d5b;p=dotfiles.git Following symlinks type in cf() --- 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 }