mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-18 16:02:58 +01:00
13 lines
179 B
Bash
13 lines
179 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
# viuer doesn't like xterm-kitty
|
||
|
export TERM=xterm-256color
|
||
|
|
||
|
mime=$(file -b --mime-type "$1")
|
||
|
|
||
|
case $mime in
|
||
|
image/*) viu $1 ;;
|
||
|
*) bat $1 --color=always ;;
|
||
|
esac
|