[file_previewer.sh]: Add previews for tar.zst files

This commit is contained in:
2024-09-23 02:11:25 +01:00
parent 0cd0dd5179
commit 7c8d5bc265

View File

@ -35,6 +35,9 @@ case "$(mimetype --brief -- "$file")" in
application/x-pcapng) application/x-pcapng)
tshark -r "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; # the --read-file option does not seem to work 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) application/zip)
unzip -lv "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;; unzip -lv "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;