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:
@@ -57,6 +57,7 @@ eval "$(mise activate bash)"
|
|||||||
export PATH="$HOME/.local/share/mise/shims:$PATH"
|
export PATH="$HOME/.local/share/mise/shims:$PATH"
|
||||||
|
|
||||||
typeset -a MISE_APPS=(
|
typeset -a MISE_APPS=(
|
||||||
|
"bat@latest"
|
||||||
"fzf@latest"
|
"fzf@latest"
|
||||||
"zoxide@latest"
|
"zoxide@latest"
|
||||||
"ripgrep@latest"
|
"ripgrep@latest"
|
||||||
@@ -78,6 +79,9 @@ for tool in "${MISE_APPS[@]}"; do
|
|||||||
mise use -g "$tool"
|
mise use -g "$tool"
|
||||||
done
|
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
|
if [[ "$DOTS_ENV" != "codespaces" ]]; then
|
||||||
# Setup Poetry ZSH completions (XDG compliant)
|
# Setup Poetry ZSH completions (XDG compliant)
|
||||||
COMPLETIONS_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/completions"
|
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)"
|
echo "fastfetch: $(mise exec -- fastfetch --version 2>&1 | head -1)"
|
||||||
fi
|
fi
|
||||||
echo "fzf $(fzf --version)"
|
echo "fzf $(fzf --version)"
|
||||||
|
bat --version | head -1
|
||||||
zoxide --version
|
zoxide --version
|
||||||
rg --version | head -1
|
rg --version | head -1
|
||||||
delta --version | head -1
|
delta --version 2>/dev/null | head -1 || echo "delta: installed (version check failed)"
|
||||||
} | log_quote
|
} | log_quote
|
||||||
log_pass "mise tools installed"
|
log_pass "mise tools installed"
|
||||||
|
|||||||
Reference in New Issue
Block a user