fix(starship): keep `ZSH_THEME` if not installed (#12309)

master
Masaru Iritani 2 years ago committed by GitHub
parent 1d09c6bb0a
commit 62a76353ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      plugins/starship/starship.plugin.zsh

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

Loading…
Cancel
Save