From 87797ca803fb82e5722a04509ff878f71caf8b17 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Fri, 29 Dec 2023 21:07:25 -0800 Subject: [PATCH] Fix starship init --- dotfiles/zshrc.d/functions.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/zshrc.d/functions.zsh b/dotfiles/zshrc.d/functions.zsh index e6eff8f..fac09e7 100644 --- a/dotfiles/zshrc.d/functions.zsh +++ b/dotfiles/zshrc.d/functions.zsh @@ -5,18 +5,18 @@ function dumpenv { if test -x "/sbin/starship" ; then _STARSHIP_PATH="/sbin/starship" function starship_prompt { - eval $(/sbin/starship init zsh) + eval "$(/sbin/starship init zsh)" } elif test -x "${HOME}/tools/starship/starship" ; then _STARSHIP_PATH="${HOME}/tools/starship/starship" function starship_prompt { - eval $($HOME/tools/starship/starship init zsh) + eval "$($HOME/tools/starship/starship init zsh)" } fi if test -f ${HOME}/.zprompt ; then if test "$(cat ${HOME}/.zprompt)" = "starship" ; then if test -n "${_STARSHIP_PATH:-}" ; then - eval $(${_STARSHIP_PATH} init zsh) + eval "$(${_STARSHIP_PATH} init zsh)" fi fi fi