From 6d79423c0fd7a8b80d95767393077aa7987cfdc9 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 2 Aug 2022 22:49:19 +0200 Subject: [PATCH] make glow use configuration file --- .config/lf/preview | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/lf/preview b/.config/lf/preview index 652c83f4e..79b983804 100755 --- a/.config/lf/preview +++ b/.config/lf/preview @@ -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 ;;