mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-11 12:32:27 +01:00
update joshuto config
This commit is contained in:
parent
330dcf4a20
commit
5763ad0234
2 changed files with 16 additions and 4 deletions
|
@ -23,10 +23,10 @@ directories_first = true
|
||||||
reverse = false
|
reverse = false
|
||||||
|
|
||||||
# Not fully implemented yet
|
# Not fully implemented yet
|
||||||
#[preview]
|
[preview]
|
||||||
#max_preview_size = 2097152 # 2MB
|
max_preview_size = 2097152 # 2MB
|
||||||
#preview_images = true
|
preview_images = true
|
||||||
#preview_script = "~/.config/joshuto/preview.sh"
|
preview_script = "~/.config/joshuto/preview.sh"
|
||||||
|
|
||||||
[tab]
|
[tab]
|
||||||
# inherit, home, root
|
# inherit, home, root
|
||||||
|
|
12
.config/joshuto/preview.sh
Executable file
12
.config/joshuto/preview.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/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
|
Loading…
Reference in a new issue