From d136130771dda72653d32d52b8ba1ef284c5bfb8 Mon Sep 17 00:00:00 2001 From: chenyc Date: Thu, 17 Nov 2022 14:11:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20file=5Fpreview=20mac=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=B8=8Bls=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 5cef878..b97d0a8 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" || ls -G "$1" + exa -l --no-user --no-time --icons "$1" 2>/dev/null || ls --color=tty "$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