updated zsh_pokemon.sh

This commit is contained in:
JaKooLit 2025-02-25 01:20:03 +09:00
parent 6ff6a028a3
commit 21ba7d2a81

View File

@ -27,12 +27,11 @@ fi
# Check if ~/.zshrc exists
if [ -f "$HOME/.zshrc" ]; then
sed -i '/#pokemon-colorscripts --no-title -s -r | fastfetch -c $HOME\/.config\/fastfetch\/config-pokemon.jsonc --logo-type file-raw --logo-height 10 --logo-width 5 --logo -/s/^#//' "$HOME/.zshrc" >> "$LOG" 2>&1
sed -i '/^fastfetch -c $HOME\/.config\/fastfetch\/config-compact.jsonc/s/^/#/' "$HOME/.zshrc" >> "$LOG" 2>&1
sed -i "/#pokemon-colorscripts --no-title -s -r | fastfetch -c $HOME\/.config\/fastfetch\/config-pokemon.jsonc --logo-type file-raw --logo-height 10 --logo-width 5 --logo -/s/^#//" "$HOME/.zshrc" >> "$LOG" 2>&1
sed -i "/^fastfetch -c $HOME\/.config\/fastfetch\/config-compact.jsonc/s/^/#/" "$HOME/.zshrc" >> "$LOG" 2>&1
else
echo "$HOME/.zshrc not found. Cant enable ${YELLOW}Pokemon color scripts${RESET}" >> "$LOG" 2>&1
fi
printf "\n%.0s" {1..2}