final tweak before merging to main... I think I am happy now with this

This commit is contained in:
JaKooLit
2025-02-03 12:05:06 +09:00
parent 63f2f45866
commit 8c71bdeee7
3 changed files with 16 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ if [[ $USE_PRESET = [Yy] ]]; then
source ./preset.sh
fi
zsh=(
zsh_pkg=(
eza
zsh
zsh-completions
@@ -33,7 +33,7 @@ while true; do
fi
case "$pokemon_choice" in
[Yy]*)
zsh+=('pokemon-colorscripts-git')
zsh_pkg+=('pokemon-colorscripts-git')
sed -i '/#pokemon-colorscripts --no-title -s -r/s/^#//' assets/.zshrc >> "$LOG" 2>&1
# commenting out fastfetch since pokemon was chosen to install
@@ -53,16 +53,15 @@ done
# Installing zsh packages
printf "${NOTE} Installing core zsh packages...${RESET}\n"
for ZSH in "${zsh[@]}"; do
for ZSH in "${zsh_pkg[@]}"; do
(
# Call the global install_package function and redirect its output to the log
install_package "$ZSH" "$LOG"
if [ $? -ne 0 ]; then
echo -e "\e[1A\e[K${ERROR} - $ZSH Package installation failed, Please check the installation logs"
exit 1
fi
) &
done
wait # Ensure all background processes finish before continuing
wait
# Install Oh My Zsh, plugins, and set zsh as default shell
if command -v zsh >/dev/null; then