mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-23 15:06:53 +00:00
Update fastfetch
This commit is contained in:
parent
850e45b9a5
commit
416dd52a30
@ -2788,16 +2788,23 @@ configure_fastfetch() {
|
|||||||
msg_ok "$(translate "Fastfetch configuration updated")"
|
msg_ok "$(translate "Fastfetch configuration updated")"
|
||||||
|
|
||||||
|
|
||||||
sed -i '/fastfetch/d' ~/.bashrc ~/.profile /etc/profile
|
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
if ! grep -q '# BEGIN FASTFETCH' ~/.bashrc; then
|
||||||
cat << 'EOF' >> ~/.bashrc
|
cat << 'EOF' >> ~/.bashrc
|
||||||
|
|
||||||
|
# BEGIN FASTFETCH
|
||||||
# Run Fastfetch only in interactive sessions
|
# Run Fastfetch only in interactive sessions
|
||||||
if [[ $- == *i* ]] && command -v fastfetch &>/dev/null; then
|
if [[ $- == *i* ]] && command -v fastfetch &>/dev/null; then
|
||||||
clear
|
clear
|
||||||
fastfetch
|
fastfetch
|
||||||
fi
|
fi
|
||||||
|
# END FASTFETCH
|
||||||
EOF
|
EOF
|
||||||
|
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")"
|
||||||
|
@ -59,6 +59,7 @@ uninstall_fastfetch() {
|
|||||||
rm -rf "$HOME/.config/fastfetch"
|
rm -rf "$HOME/.config/fastfetch"
|
||||||
rm -rf /usr/local/share/fastfetch
|
rm -rf /usr/local/share/fastfetch
|
||||||
sed -i '/fastfetch/d' "$HOME/.bashrc" "$HOME/.profile" /etc/profile 2>/dev/null
|
sed -i '/fastfetch/d' "$HOME/.bashrc" "$HOME/.profile" /etc/profile 2>/dev/null
|
||||||
|
sed -i '/# BEGIN FASTFETCH/,/# END FASTFETCH/d' "$HOME/.bashrc"
|
||||||
rm -f /etc/profile.d/fastfetch.sh /etc/update-motd.d/99-fastfetch
|
rm -f /etc/profile.d/fastfetch.sh /etc/update-motd.d/99-fastfetch
|
||||||
dpkg -r fastfetch &>/dev/null
|
dpkg -r fastfetch &>/dev/null
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user