From a5cba8df97580aac8ca1f5284df1fd5f2f088c52 Mon Sep 17 00:00:00 2001 From: DustVoice Date: Sun, 26 Sep 2021 19:21:31 +0200 Subject: [PATCH] Include starship in .zshrc / znap prompt --- .zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 63a7c26..6b64049 100644 --- a/.zshrc +++ b/.zshrc @@ -38,7 +38,11 @@ if [[ -a $ZNAP_ZSH ]]; then znap source ohmyzsh/ohmyzsh lib/{git,theme-and-appearance,colored-man-pages,colorzie,command-not-found,history} - znap prompt dustvoice/dustvoice-zsh-theme + if [ -x "$(command -v starship)" ]; then + znap eval starship 'starship init zsh --print-full-init' + else + znap prompt dustvoice/dustvoice-zsh-theme + fi znap source marlonrichert/zsh-hist