feat(mise): add bat, rebuild theme cache

Add bat to mise tool list, rebuild bat theme cache after install
to keep delta syntax themes in sync. Handle delta version check
failure gracefully.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-13 17:17:03 +00:00
parent 84ac65a62f
commit 1a2ccdbe2e

View File

@@ -57,6 +57,7 @@ eval "$(mise activate bash)"
export PATH="$HOME/.local/share/mise/shims:$PATH"
typeset -a MISE_APPS=(
"bat@latest"
"fzf@latest"
"zoxide@latest"
"ripgrep@latest"
@@ -78,6 +79,9 @@ for tool in "${MISE_APPS[@]}"; do
mise use -g "$tool"
done
# Rebuild bat theme cache with mise-installed bat (must match delta's syntect version)
bat cache --build 2>/dev/null
if [[ "$DOTS_ENV" != "codespaces" ]]; then
# Setup Poetry ZSH completions (XDG compliant)
COMPLETIONS_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/completions"
@@ -101,8 +105,9 @@ log_info "Verifying installations..."
echo "fastfetch: $(mise exec -- fastfetch --version 2>&1 | head -1)"
fi
echo "fzf $(fzf --version)"
bat --version | head -1
zoxide --version
rg --version | head -1
delta --version | head -1
delta --version 2>/dev/null | head -1 || echo "delta: installed (version check failed)"
} | log_quote
log_pass "mise tools installed"