summaryrefslogtreecommitdiff
path: root/plugins/starship/starship.plugin.zsh
diff options
context:
space:
mode:
authorAndrew Xie <62098008+axieax@users.noreply.github.com>2023-04-21 16:59:58 +1000
committerGitHub <noreply@github.com>2023-04-21 08:59:58 +0200
commit07454029bd67239ce42aaa68b427fbbe8e428e7d (patch)
tree2a7b5caceeabbd977621ea6b0ae33e19fe6a81c7 /plugins/starship/starship.plugin.zsh
parent91c7ed45a312a71b7d3b856228047ddcd51d4651 (diff)
downloadzsh-07454029bd67239ce42aaa68b427fbbe8e428e7d.tar.gz
zsh-07454029bd67239ce42aaa68b427fbbe8e428e7d.tar.bz2
zsh-07454029bd67239ce42aaa68b427fbbe8e428e7d.zip
feat(starship): create plugin (#10947)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diffstat (limited to 'plugins/starship/starship.plugin.zsh')
-rw-r--r--plugins/starship/starship.plugin.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/starship/starship.plugin.zsh b/plugins/starship/starship.plugin.zsh
new file mode 100644
index 000000000..8c5d9135e
--- /dev/null
+++ b/plugins/starship/starship.plugin.zsh
@@ -0,0 +1,8 @@
+# ignore oh-my-zsh theme
+unset ZSH_THEME
+
+if (( $+commands[starship] )); then
+ eval "$(starship init zsh)"
+else
+ echo '[oh-my-zsh] starship not found, please install it from https://starship.rs'
+fi