#!/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