Fix bat install on Debian: symlink batcat to bat

Debian's apt package installs the binary as 'batcat' due to a naming
conflict. Add a symlink to /usr/local/bin/bat after apt install so the
dotfiles can reference 'bat' consistently across all platforms.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-25 15:14:47 +00:00
parent dc6b117016
commit e7a2b3c10e

View File

@@ -12,6 +12,10 @@ if ! command -v bat &> /dev/null; then
;;
apt)
sudo apt-get install -qq bat
# Debian installs binary as 'batcat'; symlink to 'bat'
if ! command -v bat &> /dev/null && command -v batcat &> /dev/null; then
sudo ln -sf "$(which batcat)" /usr/local/bin/bat
fi
;;
pacman)
sudo pacman -S --noconfirm bat