ctpv/prev/bat.sh
2022-06-01 21:09:33 +05:00

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"