mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53:07 +01:00
16 lines
237 B
Bash
16 lines
237 B
Bash
|
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"
|