summaryrefslogtreecommitdiff
path: root/.config/zsh/oh-my-zsh/plugins/starship
diff options
context:
space:
mode:
authorPedro Pereira <pedro.hr.pereira@proton.me>2026-10-16 15:19:13 -0300
committerPedro Pereira <pedro.hr.pereira@proton.me>2026-10-16 15:19:13 -0300
commit1eb69e9a795cc19450178c07d8d382622bc7ad70 (patch)
treeb6bc60605044fe929986f31b3b6bf4fee9b56e14 /.config/zsh/oh-my-zsh/plugins/starship
first commit
Diffstat (limited to '.config/zsh/oh-my-zsh/plugins/starship')
-rw-r--r--.config/zsh/oh-my-zsh/plugins/starship/README.md21
-rw-r--r--.config/zsh/oh-my-zsh/plugins/starship/starship.plugin.zsh8
2 files changed, 29 insertions, 0 deletions
diff --git a/.config/zsh/oh-my-zsh/plugins/starship/README.md b/.config/zsh/oh-my-zsh/plugins/starship/README.md
new file mode 100644
index 0000000..0e66c52
--- /dev/null
+++ b/.config/zsh/oh-my-zsh/plugins/starship/README.md
@@ -0,0 +1,21 @@
+# starship plugin
+
+Initializes [starship prompt](https://starship.rs) - a minimal, blazing-fast and infinitely customizable cross-shell prompt.
+
+[Demo](https://user-images.githubusercontent.com/62098008/169764279-50b48262-9506-4651-ba89-f6611a88ebf0.mp4)
+
+[External repository](https://github.com/axieax/zsh-starship) for this zsh plugin.
+
+# Installation
+
+**Note:** you have to [install starship](https://starship.rs/guide/#%F0%9F%9A%80-installation) first.
+
+## [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh)
+
+Add `starship` to the plugins array in your `.zshrc` file:
+
+```zsh
+plugins=(... starship)
+```
+
+## ⚠️ ENABLING THIS PLUGIN WILL UNSET YOUR ZSH_THEME VARIABLE
diff --git a/.config/zsh/oh-my-zsh/plugins/starship/starship.plugin.zsh b/.config/zsh/oh-my-zsh/plugins/starship/starship.plugin.zsh
new file mode 100644
index 0000000..fc415e6
--- /dev/null
+++ b/.config/zsh/oh-my-zsh/plugins/starship/starship.plugin.zsh
@@ -0,0 +1,8 @@
+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'
+fi