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:
28
install.d/75-cmatrix.sh
Executable file
28
install.d/75-cmatrix.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Description:
|
||||
# Install cmatrix.
|
||||
#
|
||||
|
||||
# skip if in Codespaces
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_skip "Codespaces"; return 0; }
|
||||
|
||||
if ! command -v cmatrix &> /dev/null; then
|
||||
case "$DOTS_PKG" in
|
||||
apt)
|
||||
sudo apt-get install -qq cmatrix &>/dev/null
|
||||
;;
|
||||
pacman)
|
||||
sudo pacman -S --noconfirm cmatrix &>/dev/null
|
||||
;;
|
||||
brew)
|
||||
brew install cmatrix
|
||||
;;
|
||||
*)
|
||||
log_warn "Skipping cmatrix install: no supported package manager found"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
log_pass "cmatrix installed"
|
||||
command -v cmatrix &> /dev/null && cmatrix -V 2>&1 | sed -n '1p' | log_quote
|
||||
Reference in New Issue
Block a user