From a072ee7e3052ac2b3c23da179d1b19ff0c4e7e4e Mon Sep 17 00:00:00 2001 From: nain <126972030+nain-F49FF806@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:57:57 +0000 Subject: [PATCH] fix optional script: don't nuke the bashrc, just append --- customization/common/files/opt/rusty-pets/starship-activate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/customization/common/files/opt/rusty-pets/starship-activate b/customization/common/files/opt/rusty-pets/starship-activate index 149306a..5928e61 100755 --- a/customization/common/files/opt/rusty-pets/starship-activate +++ b/customization/common/files/opt/rusty-pets/starship-activate @@ -4,7 +4,7 @@ RP_STARSHIP_INIT_BASH='eval "$(starship init bash)' RP_STARSHIP_INIT_ZSH='eval "$(starship init zsh)' if [ ! -f ~/.config/rusty-pets/starship-activated ]; then echo "Activating starship prompt! ☄🌌️" - [ "${BASH_VERSION:-}" != "" ] && echo "${RP_STARSHIP_INIT_BASH}" > ~/.bashrc - [ "${ZSH_VERSION:-}" != "" ] && echo "${RP_STARSHIP_INIT_ZSH}" > ~/.zshrc + [ "${BASH_VERSION:-}" != "" ] && echo "${RP_STARSHIP_INIT_BASH}" >> ~/.bashrc + [ "${ZSH_VERSION:-}" != "" ] && echo "${RP_STARSHIP_INIT_ZSH}" >> ~/.zshrc touch ~/.config/rusty-pets/starship-activated -fi \ No newline at end of file +fi