Keep ZSH_THEME when starship is missing

This commit is contained in:
Masaru Iritani 2024-03-30 12:47:48 +09:00
commit f1ab4cca9f

View file

@ -1,7 +1,7 @@
# ignore oh-my-zsh theme
unset ZSH_THEME
if (( $+commands[starship] )); then if (( $+commands[starship] )); then
# ignore oh-my-zsh theme
unset ZSH_THEME
eval "$(starship init zsh)" eval "$(starship init zsh)"
else else
echo '[oh-my-zsh] starship not found, please install it from https://starship.rs' echo '[oh-my-zsh] starship not found, please install it from https://starship.rs'