From cb036a79e2261569d900d6b78f283c441afd5b04 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 8 Sep 2022 02:48:46 +0200 Subject: [PATCH] dired-guess: Support zstandard archives * lisp/dired-aux.el (dired-guess-shell-alist-default): Support zstandard archives. --- lisp/dired-aux.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 0e8062af528..f870494e93e 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -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") -- 2.39.2