From 1a2ccdbe2e30a1df286f750a3f09ed78df478631 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Fri, 13 Mar 2026 17:17:03 +0000 Subject: [PATCH] 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> --- install.d/30-mise.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.d/30-mise.sh b/install.d/30-mise.sh index a365819..525fec7 100755 --- a/install.d/30-mise.sh +++ b/install.d/30-mise.sh @@ -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"