summaryrefslogtreecommitdiff
path: root/plugins/starship
diff options
context:
space:
mode:
authorMasaru Iritani <25241373+masaru-iritani@users.noreply.github.com>2024-03-30 16:25:34 +0900
committerGitHub <noreply@github.com>2024-03-30 08:25:34 +0100
commit62a76353ab73532c2681c6b168623f7f1e7d96ae (patch)
tree8f86d37ac7ae3ae1a6cb678bcac082e1841a0135 /plugins/starship
parent1d09c6bb0a950756a65b02457842933e3aa493eb (diff)
downloadzsh-62a76353ab73532c2681c6b168623f7f1e7d96ae.tar.gz
zsh-62a76353ab73532c2681c6b168623f7f1e7d96ae.tar.bz2
zsh-62a76353ab73532c2681c6b168623f7f1e7d96ae.zip
fix(starship): keep `ZSH_THEME` if not installed (#12309)
Diffstat (limited to 'plugins/starship')
-rw-r--r--plugins/starship/starship.plugin.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/starship/starship.plugin.zsh b/plugins/starship/starship.plugin.zsh
index 8c5d9135e..fc415e64c 100644
--- a/plugins/starship/starship.plugin.zsh
+++ b/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'