This commit is contained in:
Nikita Ivanov 2022-06-01 03:05:24 +05:00
parent 0da19f7c37
commit 402e4aa932
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133
2 changed files with 24 additions and 21 deletions

View File

@ -7,17 +7,20 @@ else
fi
if [ -n "$batcmd" ]; then
"$batcmd" --color always \
"$batcmd" \
--color always \
--style plain \
--paging never \
--terminal-width "$w" \
--wrap character \
-- "$f"
elif exists highlight; then
highlight --replace-tabs=4 --out-format=ansi \
highlight \
--replace-tabs=4 --out-format=ansi \
--style='pablo' --force -- "$f"
elif exists source-highlight; then
source-highlight --tab=4 --out-format=esc \
source-highlight \
--tab=4 --out-format=esc \
--style=esc256.style --failsafe -i "$f"
else
cat "$f"