mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-12-01 00:43:08 +01:00
18 lines
250 B
Bash
18 lines
250 B
Bash
# text: bat
|
|
|
|
if exists bat; then
|
|
batcmd=bat
|
|
elif exists batcat; then
|
|
batcmd=batcat
|
|
else
|
|
exit 127
|
|
fi
|
|
|
|
"$batcmd" \
|
|
--color always \
|
|
--style plain \
|
|
--paging never \
|
|
--terminal-width "$w" \
|
|
--wrap character \
|
|
-- "$f"
|