Update customizable_post_install.sh

This commit is contained in:
MacRimi 2025-07-22 19:10:35 +02:00
parent 416dd52a30
commit 0d51205bd6

View File

@ -2788,13 +2788,13 @@ configure_fastfetch() {
msg_ok "$(translate "Fastfetch configuration updated")" msg_ok "$(translate "Fastfetch configuration updated")"
sed -i '/fastfetch/d' ~/.profile /etc/profile 2>/dev/null
sed -i '/fastfetch/d' ~/.bashrc ~/.profile /etc/profile 2>/dev/null
rm -f /etc/update-motd.d/99-fastfetch rm -f /etc/update-motd.d/99-fastfetch
sed -i '/# BEGIN FASTFETCH/,/# END FASTFETCH/d' "$HOME/.bashrc" 2>/dev/null
if ! grep -q '# BEGIN FASTFETCH' ~/.bashrc; then if ! grep -q '# BEGIN FASTFETCH' "$HOME/.bashrc"; then
cat << 'EOF' >> ~/.bashrc cat << 'EOF' >> "$HOME/.bashrc"
# BEGIN FASTFETCH # BEGIN FASTFETCH
# Run Fastfetch only in interactive sessions # Run Fastfetch only in interactive sessions
@ -2806,9 +2806,10 @@ fi
EOF EOF
fi fi
msg_ok "$(translate "Fastfetch will start automatically in the console")" msg_ok "$(translate "Fastfetch will start automatically in the console")"
msg_success "$(translate "Fastfetch installation and configuration completed")" msg_success "$(translate "Fastfetch installation and configuration completed")"
register_tool "fastfetch" true register_tool "fastfetch" true
} }