modified zsh.sh for fzf installation

This commit is contained in:
JaKooLit 2024-06-01 03:07:51 +09:00
parent f6af9f8631
commit df4ff30d4a

View File

@ -5,7 +5,6 @@
zsh=( zsh=(
zsh zsh
zplug zplug
fzf
) )
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
@ -39,6 +38,23 @@ done
printf "\n" 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 ## Optional Pokemon color scripts
while true; do while true; do
read -p "${CAT} Do you want to install Pokemon color scripts? (y/n): " choice read -p "${CAT} Do you want to install Pokemon color scripts? (y/n): " choice