From 09b67944f990ed7d9d8c05885c463e699ba2b364 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 30 Jul 2022 19:48:49 -0500 Subject: [PATCH] fix: do not update rc for fzf --- .config/zsh/config/profile/profile/env.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/zsh/config/profile/profile/env.zsh b/.config/zsh/config/profile/profile/env.zsh index 59ae4f3..a73d483 100644 --- a/.config/zsh/config/profile/profile/env.zsh +++ b/.config/zsh/config/profile/profile/env.zsh @@ -10,9 +10,12 @@ export ZSH_AUTOSUGGEST_STRATEGY=(history completion) ### FZF ### if ! [[ -r "${HOME}/.fzf" ]]; then + printf "Installing FZF\n" >&2 git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf - ~/.fzf/install --key-bindings --completion - + ~/.fzf/install --key-bindings --completion --no-update-rc +else + [[ -f "${HOME}/.fzf.zsh" ]] && source "${HOME}/.fzf.zsh" +fi 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}"