chore(install): optimize logging, speed, cleanup

- Version logged after [PASS] (not before) across all scripts
- Pre-cache brew package lists with log_info progress
- Read brew version from git describe cache (skip Ruby startup)
- Batch mise use -g calls (single invocation for all tools)
- Replace mise verify step with mise ls --current
- Parallel vim plugin pulls
- Skip donut compile when binary is fresh
- Pre-check macOS defaults before writing (skip fsync when unchanged)
- Pre-check dock state before dockutil calls
- Remove redundant 'already installed' skip logs
- Remove meetingbar and wispr-flow install scripts
- Renumber scripts to fill gaps

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-24 18:09:17 +00:00
parent 4324a3f449
commit b62a6c00f9
23 changed files with 88 additions and 204 deletions

View File

@@ -49,9 +49,7 @@ if [[ "$DOTS_ENV" != "codespaces" ]]; then
log_info "Installing runtimes..."
MISE_QUIET=1 mise install "${MISE_RUNTIMES[@]}" 2>&1 | log_quote
for tool in "${MISE_RUNTIMES[@]}"; do
MISE_QUIET=1 mise use -g "$tool" 2>&1 | log_quote
done
MISE_QUIET=1 mise use -g "${MISE_RUNTIMES[@]}" 2>&1 | log_quote
fi
# Activate mise shims so runtimes (e.g. python3) are available for app installers
@@ -78,9 +76,7 @@ if [[ "$DOTS_ENV" != "codespaces" ]]; then
fi
log_info "Installing apps..."
for tool in "${MISE_APPS[@]}"; do
MISE_QUIET=1 mise use -g "$tool" 2>&1 | tail -1 | log_quote
done
MISE_QUIET=1 mise use -g "${MISE_APPS[@]}" 2>&1 | log_quote
# Rebuild bat theme cache with mise-installed bat (must match delta's syntect version)
bat cache --build &>/dev/null
@@ -94,24 +90,5 @@ if [[ "$DOTS_ENV" != "codespaces" ]]; then
fi
fi
# Verify installations
log_info "Verifying installations..."
{
if [[ "$DOTS_ENV" != "codespaces" ]]; then
mise exec -- python --version
mise exec -- poetry --version
echo "node $(mise exec -- node --version)"
echo "npm $(mise exec -- npm --version)"
mise exec -- gh --version
mise exec -- terraform --version | sed -n '1p'
echo "firebase: $(mise exec -- firebase --version)"
echo "fastfetch: $(mise exec -- fastfetch --version 2>&1 | sed -n '1p')"
mise exec -- glow --version | sed -n '1p'
fi
echo "fzf $(fzf --version)"
bat --version | sed -n '1p'
zoxide --version
rg --version | sed -n '1p'
delta --version 2>/dev/null | sed -n '1p' || echo "delta: installed (version check failed)"
} | log_quote
log_pass "mise tools installed"
mise ls --current 2>/dev/null | awk '{printf "%s %s\n", $1, $2}' | log_quote