From 1b3d0796cb8e9be81aa727b4a016d3436f23b2fb Mon Sep 17 00:00:00 2001 From: rain Date: Sun, 21 Jun 2026 21:35:17 -0400 Subject: [PATCH] Symlink debian's batcat -> bat in ~/.local/bin Same as fdfind -> fd. Debian renames the upstream 'bat' binary to 'batcat' because there's a different unrelated 'bat' package in the distro. .zshrc aliases 'cat=bat' so without the symlink, the alias fails on debian. --- run_once_20-install-user-packages.sh.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run_once_20-install-user-packages.sh.tmpl b/run_once_20-install-user-packages.sh.tmpl index b885097..972e6d1 100755 --- a/run_once_20-install-user-packages.sh.tmpl +++ b/run_once_20-install-user-packages.sh.tmpl @@ -62,6 +62,14 @@ if command -v fdfind >/dev/null 2>&1 && ! command -v fd >/dev/null 2>&1; then ln -sf "$(command -v fdfind)" "$USER_HOME/.local/bin/fd" fi +# Same treatment for 'bat' (renamed to 'batcat' on Debian to avoid clashing +# with a different unrelated package). .zshrc aliases assume 'bat'. +if command -v batcat >/dev/null 2>&1 && ! command -v bat >/dev/null 2>&1; then + log "symlinking batcat -> bat in ~/.local/bin" + mkdir -p "$USER_HOME/.local/bin" + ln -sf "$(command -v batcat)" "$USER_HOME/.local/bin/bat" +fi + # Neovim — install official binary tarball, pinned to a known-good version. # Bump NVIM_TARGET_VERSION to upgrade. ~/.local/bin/update-neovim.sh does # the same check + download so topgrade can invoke it for upgrades.