Files
dotfiles/install.d/26-bat.sh

30 lines
666 B
Bash

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Install bat and build theme cache from dotfiles.
#
if ! command -v bat &> /dev/null; then
case "$DOTS_PKG" in
brew)
brew install bat
;;
apt)
sudo apt-get install -qq bat
;;
pacman)
sudo pacman -S --noconfirm bat
;;
*)
log_warn "Skipping bat install: no supported package manager found"
return 0
;;
esac
fi
bat --version | log_quote
bat cache --build 2>/dev/null
log_pass "bat theme cache built"