mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 15:33:07 +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"
|