Use starship if available

This commit is contained in:
David Tomaschik
2024-06-06 12:40:03 -07:00
parent d072e3a5dd
commit f9a48c70c4
2 changed files with 4 additions and 1 deletions

View File

@@ -168,4 +168,7 @@ if [ -e $HOME/.zshrc.local ] ; then source $HOME/.zshrc.local ; fi
if test -f "${HOME}/.zprompt" ; then if test -f "${HOME}/.zprompt" ; then
THEME=${THEME:=$(cat "${HOME}/.zprompt")} THEME=${THEME:=$(cat "${HOME}/.zprompt")}
fi fi
if command -v starship >/dev/null 2>&1 ; then
: ${THEME:=starship}
fi
prompt "${THEME:-matir}" >/dev/null 2>&1 prompt "${THEME:-matir}" >/dev/null 2>&1