Browse Source

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

Masaru Iritani 1 month ago
parent
commit
62a76353ab
1 changed files with 3 additions and 3 deletions
  1. 3 3
      plugins/starship/starship.plugin.zsh

+ 3 - 3
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'