mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-23 15:06:53 +00:00
Update customizable_post_install.sh
This commit is contained in:
parent
e173072622
commit
040d2ca7f6
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user