1
0
Fork 0

[bin] Add preview binary for lf to pick up ascii previews

main
Sebastian Schulze 2021-07-21 20:28:37 +02:00
parent bcaf3fc292
commit 01f89222bb
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 12 additions and 0 deletions

12
bin/executable_preview Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env sh
case "$1" in
*.jpg|*.jpeg|*.png|*.gif) viu "$1";;
*.tar*) tar tf "$1";;
*.zip) unzip -l "$1";;
*.rar) unrar l "$1";;
*.7z) 7z l "$1";;
*.pdf) pdftotext "$1" -;;
*) bat --theme=base16 --color always "$@" ;;
esac