From 7c8d5bc265c7a0874b927e129d4b8357c6e9fa75 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 23 Sep 2024 02:11:25 +0100 Subject: [PATCH] [file_previewer.sh]: Add previews for tar.zst files --- file_previewer.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file_previewer.sh b/file_previewer.sh index 37fad32..b5f0059 100755 --- a/file_previewer.sh +++ b/file_previewer.sh @@ -35,6 +35,9 @@ case "$(mimetype --brief -- "$file")" in application/x-pcapng) tshark -r "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; # the --read-file option does not seem to work + application/x-zstd-compressed-tar) + tar --list --use-compress-program zstd --file "$file" | bat --language=java --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; + application/zip) unzip -lv "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;