From 06b0c7eb739fd430aacbb46f183cea4aaf17300a Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sun, 17 Apr 2022 10:46:33 -0500 Subject: small changes to zsh and st configsa --- lf/scope | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lf/scope') diff --git a/lf/scope b/lf/scope index 4058543..39fdfef 100755 --- a/lf/scope +++ b/lf/scope @@ -26,6 +26,11 @@ ifub() { # be regenerated once seen. case "$(file --dereference --brief --mime-type -- "$1")" in + image/svg+xml) + gencacheimage "$1" ".png" + [ ! -f "$CACHE" ] && convert -background none "$1" "$CACHE" + image "$CACHE" "$2" "$3" "$4" "$5" + ;; image/*) image "$1" "$2" "$3" "$4" "$5" ;; text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;; text/troff) man ./ "$1" | col -b ;; -- cgit v1.2.3