62a76353ab73532c2681c6b168623f7f1e7d96ae

Author
Masaru Iritani <25241373+masaru-iritani@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Diff

 1diff --git a/plugins/starship/starship.plugin.zsh b/plugins/starship/starship.plugin.zsh
 2index 8c5d9135e0064a6367e3f72599d54a7d0defaf3c..fc415e64cc0e4310a1a1eb76a458623f5df5a3a4 100644
 3--- a/plugins/starship/starship.plugin.zsh
 4+++ b/plugins/starship/starship.plugin.zsh
 5@@ -1,7 +1,7 @@
 6-# ignore oh-my-zsh theme
 7-unset ZSH_THEME
 8-
 9 if (( $+commands[starship] )); then
10+  # ignore oh-my-zsh theme
11+  unset ZSH_THEME
12+
13   eval "$(starship init zsh)"
14 else
15   echo '[oh-my-zsh] starship not found, please install it from https://starship.rs'