sh: Use relative alias for cat command

Fixes https://github.com/carapace-sh/carapace-bin/issues/2971
until the merge is in the new release version.
This commit is contained in:
Marty Oehme 2025-08-23 12:38:45 +02:00
parent acc2496bd6
commit 24120f55b2
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -13,8 +13,8 @@ alias rcat="$(which cat)"
if command -v batcat >/dev/null 2>&1; then
# For Ubuntu and Debian-based `bat` packages
# the `bat` program is named `batcat` on these systems
alias cat="$(which batcat)"
alias cat="batcat"
elif command -v bat >/dev/null 2>&1; then
# For all other systems
alias cat="$(which bat)"
alias cat="bat"
fi