fix(zshrc): smoother initial run and tool installation

This commit is contained in:
2024-02-22 23:53:24 +00:00
parent 65544c24cc
commit edcf9c122d

6
zshrc
View File

@@ -142,7 +142,7 @@ if command-exists mise; then
if [ ! -f "$MISE_ZSH_INIT" ] || [ "$MISE_ZSH_INIT" -ot "$MISE_INSTALL_PATH" ]; then
mkdir -p "$(dirname "$MISE_ZSH_INIT")"
mise activate zsh > "$MISE_ZSH_INIT"
"$MISE_INSTALL_PATH" activate zsh > "$MISE_ZSH_INIT"
fi
source "$MISE_ZSH_INIT"
@@ -153,9 +153,9 @@ fi
# Prompt
# ==============================================================================
if ! command-exists starship; then
if ! command-exists starship && [ -f "$MISE_INSTALL_PATH" ]; then
read -q 'REPLY?starship is not installed, install with `mise install starship`? [y/N]:' &&
echo && mise install starship
echo && "$MISE_INSTALL_PATH" install starship
fi
if command-exists starship; then