]> git.eshelyaron.com Git - emacs.git/commitdiff
dired-guess: Support zstandard archives
authorStefan Kangas <stefankangas@gmail.com>
Thu, 8 Sep 2022 00:48:46 +0000 (02:48 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 8 Sep 2022 00:48:46 +0000 (02:48 +0200)
* lisp/dired-aux.el (dired-guess-shell-alist-default): Support
zstandard archives.

lisp/dired-aux.el

index 0e8062af528cbe8a37b6c17b7fdb644a37a2f7f8..f870494e93edb98f5d48cbda3ee20fef7f4aef52 100644 (file)
@@ -1169,6 +1169,10 @@ Return the result of `process-file' - zero for success."
          ;; Optional decompression.
          "unxz")
 
+   ;; zstandard archives
+   `(,(rx (or ".tar.zst" ".tzst") eos) "unzstd -c %i | tar -xf -")
+   `(,(rx ".zst" eos)                  "unzstd --rm")
+
    '("\\.shar\\.Z\\'" "zcat * | unshar")
    '("\\.shar\\.g?z\\'" "gunzip -qc * | unshar")