these two functions
# Set to global alias 'fzlf' in 8.aliases.zsh
__fzlf() {
export FZF_CTRL_F_COMMAND=$(
if [[ "$(realpath .)" == "${HOME}" ]]; then
printf '%s' "fd . --color=always -HiL -d1 -E .histfile -E .git -E .gitignore"
else
printf '%s' "fd . --color=always -HiL -d2 -E .histfile -E .git -E .gitignore"
fi
)
FZF_DEFAULT_COMMAND="${FZF_CTRL_F_COMMAND}"
eval ${FZF_DEFAULT_COMMAND} | \
fzf -m -d '/' --preview-window='75%' --preview='fzf_preview_wrapper {}'
}
Comment too long. Click here to view the full text.