From 82039b35cd6412aacf598d4f25c9dfb431d644f8 Mon Sep 17 00:00:00 2001 From: steffen Date: Sat, 24 Jan 2026 07:56:07 +0000 Subject: [PATCH] Allow uninstalling banner or PS1 via installer --- dotfiles/install/install-linux-global.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/install/install-linux-global.sh b/dotfiles/install/install-linux-global.sh index 2bb7539..a85ebeb 100644 --- a/dotfiles/install/install-linux-global.sh +++ b/dotfiles/install/install-linux-global.sh @@ -94,11 +94,15 @@ fi if [[ "$install_ps1" -eq 1 ]]; then cp -f "$SRC_PS1" "$DST_PS1" chmod 0644 "$DST_PS1" +else + rm -f "$DST_PS1" fi if [[ "$install_banner" -eq 1 ]]; then cp -f "$SRC_BANNER" "$DST_BANNER" chmod 0644 "$DST_BANNER" +else + rm -f "$DST_BANNER" fi # Ensure /etc/bash.bashrc sources both (idempotent)