[bin] Add preview binary for lf to pick up ascii previews
parent
bcaf3fc292
commit
01f89222bb
|
@ -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
|
||||
|
Loading…
Reference in New Issue