From a367a75a9901dfc1f0f7fc2e46ecc86e43913621 Mon Sep 17 00:00:00 2001 From: alvinlollo Date: Thu, 30 Jan 2025 05:50:47 +0000 Subject: [PATCH] Made fzf configuration more efficent --- install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 85572a4..0c6efc4 100755 --- a/install.sh +++ b/install.sh @@ -83,9 +83,13 @@ curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/re # Setup fzf mkdir -p ~/.fzf/shell touch ~/.fzf/shell/key-bindings.zsh -source ~/.zshrc -source ~/.zshrc -source ~/.zshrc + +# Source .zshrc three times only if fzf has not been initialized +if [ ! -f ~/.fzf/shell/key-bindings.zsh ]; then + for i in {1..3}; do + source ~/.zshrc + done +fi # Do not print commands set +x