From 040d2ca7f678c2007592ab77780d3e597e099cb8 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 22 Jul 2025 18:39:48 +0200 Subject: [PATCH] Update customizable_post_install.sh --- scripts/post_install/customizable_post_install.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/post_install/customizable_post_install.sh b/scripts/post_install/customizable_post_install.sh index 2d9d191..402db72 100644 --- a/scripts/post_install/customizable_post_install.sh +++ b/scripts/post_install/customizable_post_install.sh @@ -2618,7 +2618,7 @@ enable_ha() { configure_fastfetch() { msg_info2 "$(translate "Installing and configuring Fastfetch...")" - register_tool "fastfetch" true + # Define paths local fastfetch_bin="/usr/local/bin/fastfetch" @@ -2787,12 +2787,19 @@ configure_fastfetch() { fastfetch --gen-config > /dev/null 2>&1 msg_ok "$(translate "Fastfetch configuration updated")" + sed -i '/fastfetch/d' ~/.bashrc ~/.profile /etc/profile - rm -f /etc/update-motd.d/99-fastfetch + rm -f /etc/update-motd.d/99-fastfetch + + cat << 'EOF' >> ~/.bashrc +# Run Fastfetch only in interactive sessions +if [[ $- == *i* ]] && command -v fastfetch &>/dev/null; then + clear + fastfetch +fi +EOF - echo "clear && fastfetch" >> ~/.bashrc msg_ok "$(translate "Fastfetch will start automatically in the console")" - msg_success "$(translate "Fastfetch installation and configuration completed")" register_tool "fastfetch" true