From: ur4t Date: Sat, 30 May 2020 02:14:29 +0000 (+0800) Subject: modified: etc/zsh/zshrc, add zstd support for simple-extract(). X-Git-Tag: v0.17.2~2^2 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=606e4c8d8803130ba0c79a0344c0fa739b8612c5 modified: etc/zsh/zshrc, add zstd support for simple-extract(). --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 6360f5f..31b83a0 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3494,6 +3494,11 @@ function simple-extract () { USES_STDIN=true USES_STDOUT=false ;; + *tar.zst) + DECOMP_CMD="tar --zstd -xvf -" + USES_STDIN=true + USES_STDOUT=false + ;; *tar) DECOMP_CMD="tar -xvf -" USES_STDIN=true @@ -3539,6 +3544,11 @@ function simple-extract () { USES_STDIN=true USES_STDOUT=true ;; + *zst) + DECOMP_CMD="zstd -d -c -" + USES_STDIN=true + USES_STDOUT=true + ;; *) print "ERROR: '$ARCHIVE' has unrecognized archive type." >&2 RC=$((RC+1))