From 1c0f50e134c6368d9365e50f8809686fa34c1d5b Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 2 Jun 2021 13:05:26 +0300 Subject: [PATCH] Following symlinks type in cf() --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.44.0