1
0
Fork 0

make glow use configuration file

This commit is contained in:
Luca Bilke 2022-08-02 22:49:19 +02:00
parent 06a64c8e08
commit 6d79423c0f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ batorcat() {
CACHE="$HOME/.cache/lf/thumbnail.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | awk '{print $1}'))"
case "$(printf "%s\n" "$(readlink -f "$1")" | awk '{print tolower($0)}')" in
*.md) glow -s dark "$1" && exit 0 ;;
*.md) glow "$1" && exit 0 ;;
*.xml|*.html) w3m -dump "$1" && exit 0 ;;
*.[1-8]) man "$1" | col -b && exit 0 ;;
*.o) nm "$1" && exit 0 ;;