diff --git a/installers/new-installer.sh b/installers/new-installer.sh index 04e9afa9b..928ab6c53 100644 --- a/installers/new-installer.sh +++ b/installers/new-installer.sh @@ -35,9 +35,11 @@ uv pip install --python "$VENV_DIR/bin/python" "git+$REPO_URL@$BRANCH" # Update PATH for current session and future sessions export PATH="$VENV_DIR/bin:$PATH" SHELL_CONFIG="$HOME/.bashrc" -if [[ "$SHELL" == *"zsh"* ]]; then - SHELL_CONFIG="$HOME/.zshrc" -fi +case "$SHELL" in + *zsh*) + SHELL_CONFIG="$HOME/.zshrc" + ;; +esac echo "export PATH=\"$VENV_DIR/bin:\$PATH\"" >> "$SHELL_CONFIG" echo