From 3f55407ac9a197eaeddc5cec582867895c6d97f2 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 31 May 2023 14:52:39 -0400 Subject: [PATCH] zstd extract support --- configs/zsh/macros.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/zsh/macros.sh b/configs/zsh/macros.sh index 5ffbf66..dc65edd 100644 --- a/configs/zsh/macros.sh +++ b/configs/zsh/macros.sh @@ -77,6 +77,8 @@ extract() { *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *.7z) 7z x $1 ;; + *.tar.zst) tar --use-compress-program=unzstd -xvf $1 ;; + *.zst) zstd -d $1 ;; *) echo "don't know how to extract '$1'..." ;; esac else