From 0ef2098ed7bc8de6e1443fd093201d7ec73054b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 25 Apr 2022 16:26:44 +0300 Subject: Add preview for xz archives --- dotfiles/.local/bin/scope | 1 + 1 file changed, 1 insertion(+) diff --git a/dotfiles/.local/bin/scope b/dotfiles/.local/bin/scope index 5a6c157..b5fccda 100755 --- a/dotfiles/.local/bin/scope +++ b/dotfiles/.local/bin/scope @@ -47,6 +47,7 @@ handle_mime() { --style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" ;; application/zip) unzip -l -- "${FILE_PATH}" ;; application/gzip) tar -ztf "${FILE_PATH}" ;; + application/x-xz) tar -Jtf "${FILE_PATH}" ;; application/x-rar) unrar lb -- "${FILE_PATH}" ;; video/* | audio/*|application/octet-stream) mediainfo "${FILE_PATH}" | awk -F':' '{ print $2 }' || exit 1;; image/*) exiftool "${FILE_PATH}";; -- cgit v1.2.3