From 7bf5dee63d7c8e7a041d53c838241b2584c3b6b6 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 31 Jul 2022 02:39:32 -0500 Subject: [PATCH] fix: configure fzf after zsh vi mode --- .config/zsh/config/profile/profile/env.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/zsh/config/profile/profile/env.zsh b/.config/zsh/config/profile/profile/env.zsh index 58d570d..9e8c80f 100644 --- a/.config/zsh/config/profile/profile/env.zsh +++ b/.config/zsh/config/profile/profile/env.zsh @@ -13,7 +13,9 @@ source "${HOME}/.local/share/autojump/etc/profile.d/autojump.sh" export PATH="${PATH}:${HOME}/.local/share/autojump/bin" ### FZF ### -[[ -f "${HOME}/.config/fzf/fzf.zsh" ]] && source "${HOME}/.config/fzf/fzf.zsh" +function zvm_after_init() { + [[ -r "${HOME}/.config/fzf/fzf.zsh" ]] && source "${HOME}/.config/fzf/fzf.zsh" +} export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git --color=always' export FZF_DEFAULT_OPTS="--height=80% --layout=reverse --info=inline --border --margin=1 --ansi" export FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}"