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:
parent
5ce06f98de
commit
1b3d0796cb
1 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue