mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Fix starship init
This commit is contained in:
@@ -5,18 +5,18 @@ function dumpenv {
|
|||||||
if test -x "/sbin/starship" ; then
|
if test -x "/sbin/starship" ; then
|
||||||
_STARSHIP_PATH="/sbin/starship"
|
_STARSHIP_PATH="/sbin/starship"
|
||||||
function starship_prompt {
|
function starship_prompt {
|
||||||
eval $(/sbin/starship init zsh)
|
eval "$(/sbin/starship init zsh)"
|
||||||
}
|
}
|
||||||
elif test -x "${HOME}/tools/starship/starship" ; then
|
elif test -x "${HOME}/tools/starship/starship" ; then
|
||||||
_STARSHIP_PATH="${HOME}/tools/starship/starship"
|
_STARSHIP_PATH="${HOME}/tools/starship/starship"
|
||||||
function starship_prompt {
|
function starship_prompt {
|
||||||
eval $($HOME/tools/starship/starship init zsh)
|
eval "$($HOME/tools/starship/starship init zsh)"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
if test -f ${HOME}/.zprompt ; then
|
if test -f ${HOME}/.zprompt ; then
|
||||||
if test "$(cat ${HOME}/.zprompt)" = "starship" ; then
|
if test "$(cat ${HOME}/.zprompt)" = "starship" ; then
|
||||||
if test -n "${_STARSHIP_PATH:-}" ; then
|
if test -n "${_STARSHIP_PATH:-}" ; then
|
||||||
eval $(${_STARSHIP_PATH} init zsh)
|
eval "$(${_STARSHIP_PATH} init zsh)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user