1
0
Fork 0

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.
This commit is contained in:
Rain 2026-06-21 21:35:17 -04:00
parent 5ce06f98de
commit 1b3d0796cb

View file

@ -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" ln -sf "$(command -v fdfind)" "$USER_HOME/.local/bin/fd"
fi 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. # Neovim — install official binary tarball, pinned to a known-good version.
# Bump NVIM_TARGET_VERSION to upgrade. ~/.local/bin/update-neovim.sh does # Bump NVIM_TARGET_VERSION to upgrade. ~/.local/bin/update-neovim.sh does
# the same check + download so topgrade can invoke it for upgrades. # the same check + download so topgrade can invoke it for upgrades.