浏览代码

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

Masaru Iritani 1 年之前
父节点
当前提交
62a76353ab
共有 1 个文件被更改,包括 3 次插入3 次删除
  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'