Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
bf58d52
Branches
master
Refs →
aurora
/
.config
/
lf
/
scope
9 lines · 182 B · Bourne Again Shell (bash)
Raw
Blame
History
Download
1
#!/bin/sh
2
case
"$(file -Lb --mime-type -- "$1")"
in
3
image/
*
)
4
chafa
-
f sixel
-
s
"$2x$3" --
animate off
--
polite on
-
t 1
--
bg black
"$1"
5
;;
6
text/
*
)
7
bat
"$1"
8
;;
9
esac