From 606e4c8d8803130ba0c79a0344c0fa739b8612c5 Mon Sep 17 00:00:00 2001 From: ur4t Date: Sat, 30 May 2020 10:14:29 +0800 Subject: [PATCH] modified: etc/zsh/zshrc, add zstd support for simple-extract(). --- etc/zsh/zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)) -- 2.1.4