From: lunik1 Date: Thu, 14 Jan 2021 17:54:43 +0000 (+0000) Subject: zshrc: add lrzip support for simple-extract() X-Git-Tag: v0.18.0~2^2 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=86f2a9b8bb82077734fbb907bd24beedf65da6c2 zshrc: add lrzip support for simple-extract() --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index e21c772..03d9c4d 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3569,6 +3569,11 @@ function simple-extract () { USES_STDIN=true USES_STDOUT=false ;; + *tar.lrz) + DECOMP_CMD="lrzuntar" + USES_STDIN=false + USES_STDOUT=false + ;; *tar) DECOMP_CMD="tar -xvf -" USES_STDIN=true @@ -3619,6 +3624,11 @@ function simple-extract () { USES_STDIN=true USES_STDOUT=true ;; + *lrz) + DECOMP_CMD="lrunzip -" + USES_STDIN=true + USES_STDOUT=true + ;; *) print "ERROR: '$ARCHIVE' has unrecognized archive type." >&2 RC=$((RC+1))