From 1aa189e58a199b593d9d291f8c2cde50db4d00a7 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 1 Jun 2024 03:07:53 +0900 Subject: [PATCH] modified zsh.sh for fzf installation --- install-scripts/zsh.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/install-scripts/zsh.sh b/install-scripts/zsh.sh index 864dcd5..21f2668 100755 --- a/install-scripts/zsh.sh +++ b/install-scripts/zsh.sh @@ -5,7 +5,6 @@ zsh=( zsh zplug -fzf ) ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## @@ -39,6 +38,23 @@ done printf "\n" +printf "${NOTE} Installing fzf from source...${RESET}\n" +if git clone --depth 1 https://github.com/junegunn/fzf.git; then + cd fzf || exit 1 + if ./install 2>&1 | tee -a "$MLOG" ; then + printf "${OK} fzf installed successfully.\n" 2>&1 | tee -a "$MLOG" + else + echo -e "${ERROR} Installation failed for fzf." 2>&1 | tee -a "$MLOG" + fi + #moving the addional logs to Install-Logs directory + mv $MLOG ../Install-Logs/ || true + cd .. +else + echo -e "${ERROR} Download failed for fzf." 2>&1 | tee -a "$LOG" +fi + +printf "\n" + ## Optional Pokemon color scripts while true; do read -p "${CAT} Do you want to install Pokemon color scripts? (y/n): " choice