From edcf9c122d7c092aeb2f347592edb9a9af69f630 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 22 Feb 2024 23:53:24 +0000 Subject: [PATCH] fix(zshrc): smoother initial run and tool installation --- zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zshrc b/zshrc index 106ac96..e0654b2 100644 --- a/zshrc +++ b/zshrc @@ -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