Files
dotfiles/install.d/27-preview.sh
Andrejus de5e296806 fix: CI log formatting and glow install on Debian
- Move glow install from apt/pacman/brew to mise (fixes Debian CI
  failure where glow is not in default apt repos)
- Suppress verbose Poetry installer banner with tail -1 in mise
  app install loop
- Add final log_pass to vim plugin script for consistent formatting
- Add version quote to cmatrix for completeness

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-18 18:39:10 +00:00

47 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Install preview dependencies: chafa (images), poppler (PDFs).
#
# chafa — terminal image viewer
if ! command -v chafa &> /dev/null; then
case "$DOTS_PKG" in
brew)
brew install chafa
;;
apt)
sudo apt-get install -qq chafa
;;
pacman)
sudo pacman -S --noconfirm --needed chafa
;;
*)
log_warn "Skipping chafa install: no supported package manager found"
;;
esac
fi
command -v chafa &> /dev/null && chafa --version | head -1 | log_quote
# pdftotext — PDF text extraction (part of poppler)
if ! command -v pdftotext &> /dev/null; then
case "$DOTS_PKG" in
brew)
brew install poppler
;;
apt)
sudo apt-get install -qq poppler-utils
;;
pacman)
sudo pacman -S --noconfirm --needed poppler
;;
*)
log_warn "Skipping poppler install: no supported package manager found"
;;
esac
fi
command -v pdftotext &> /dev/null && pdftotext -v 2>&1 | head -1 | log_quote
log_pass "preview dependencies"