From 1b08b0d85aa49a4da126dab78452f53a78c38c85 Mon Sep 17 00:00:00 2001 From: chenyc Date: Mon, 26 Dec 2022 16:20:02 +0800 Subject: [PATCH] update filepreview.sh --- lib/file_preview.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file_preview.sh b/lib/file_preview.sh index d8b98f4..d63ee2a 100755 --- a/lib/file_preview.sh +++ b/lib/file_preview.sh @@ -2,7 +2,7 @@ mime=$(file -bL --mime-type "$1") category=${mime%%/*} if [ -d "$1" ]; then - exa -l --no-user --no-time --icons "$1" 2>/dev/null || ls --color=tty "$1" 2>/dev/null || ls -G "$1" + exa -l --no-user --no-time --icons "$1" 2>/dev/null || ls --color=always "$1" 2>/dev/null || ls -G "$1" elif [ "$category" = text ]; then (bat -p --color=always "$1" || cat "$1") 2>/dev/null | head -100 elif [ "$category" = image ]; then