mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-14 14:02:29 +01:00
12 lines
179 B
Bash
Executable file
12 lines
179 B
Bash
Executable file
#!/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
|