Also alias batcat
This commit is contained in:
parent
b1129a164d
commit
8628448d5d
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user