13 lines
198 B
Bash
13 lines
198 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
case "$(file -Lb --mime-type -- "$1")" in
|
||
|
image/*)
|
||
|
chafa -f sixel -s "$2x$3" --animate off --polite on "$1"
|
||
|
exit 1
|
||
|
;;
|
||
|
*)
|
||
|
cat "$1"
|
||
|
;;
|
||
|
esac
|
||
|
|