From 68727e4869048b2ce75875619a8501cf954fe218 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sat, 2 Sep 2023 03:52:20 +0300 Subject: [PATCH] fix(scripts): fzf install script tweaks --- scripts/install-fzf.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install-fzf.sh b/scripts/install-fzf.sh index 9683f53..c7ffc63 100755 --- a/scripts/install-fzf.sh +++ b/scripts/install-fzf.sh @@ -7,10 +7,13 @@ source "$HOME/.dotfiles/scripts/shared.sh" FZF_GIT="https://github.com/junegunn/fzf.git" FZF_PATH="${XDG_CONFIG_HOME}/fzf" +FZF_BUILD="/tmp/fzf" -if [ ! -d "$FZF_PATH" ]; then - git clone --depth 1 "$FZF_GIT" "$FZF_PATH" - "$FZF_PATH/install" --xdg --all --no-update-rc +if [ ! -d "$FZF_BUILD" ]; then + git clone --depth 1 "$FZF_GIT" "$FZF_BUILD" + "$FZF_BUILD/install" \ + --xdg \ + --bin else msg_done "fzf ($FZF_PATH/) already installed" fi