Also alias batcat

This commit is contained in:
Kenneth Benzie 2022-01-07 15:55:13 +00:00
parent b1129a164d
commit 8628448d5d

View File

@ -66,8 +66,11 @@ if which bat &> /dev/null; then
# Both --theme and --color can be specified multiple times and will override # Both --theme and --color can be specified multiple times and will override
# these defaults. # these defaults.
bat() { bat() {
command bat --theme='TwoDark' --color always \ command bat --theme='TwoDark' --color always --paging auto "$@"
--paging always --pager 'less -R' "$@" }
elif which batcat &> /dev/null; then
bat() {
command batcat --theme='TwoDark' --color always --paging auto "$@"
} }
fi fi