Skip to content

Commit

Permalink
fix optional script: don't nuke the bashrc, just append
Browse files Browse the repository at this point in the history
  • Loading branch information
nain-F49FF806 committed Sep 10, 2024
1 parent 59a44b1 commit a072ee7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions customization/common/files/opt/rusty-pets/starship-activate
Original file line number Diff line number Diff line change
Expand Up @@ -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
fi

0 comments on commit a072ee7

Please sign in to comment.