]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add new "starship" theme wrapper
authorAlexander Barton <alex@barton.de>
Sun, 21 Mar 2021 11:44:52 +0000 (12:44 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 21 Mar 2021 11:46:35 +0000 (12:46 +0100)
See <https://starship.rs>.

Note: This is a wrapper for the starship(1) command to integrate it into
AX-ZSH. You still need it installed first!

themes/starship.axzshtheme [new file with mode: 0644]

diff --git a/themes/starship.axzshtheme b/themes/starship.axzshtheme
new file mode 100644 (file)
index 0000000..b3fcfce
--- /dev/null
@@ -0,0 +1,9 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# starship.axzshtheme: Enable extnerl "Starship" Theme
+# see <https://starship.rs/>
+
+if (( $+commands[starship] )); then
+       eval "$(starship init zsh)"
+else
+       echo "Oops, starship(1) command not found, can't enable Starship prompt!" >&2
+fi