1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-08-20 15:50:21 +00:00

Add support for zstd compressed tarballs to module 'archive'

This commit is contained in:
Poscat
2020-11-07 18:35:08 +08:00
committed by Jeff Widman
parent a2f3f419f6
commit 4de0377106
5 changed files with 12 additions and 5 deletions

View File

@@ -41,6 +41,7 @@ while (( $# > 0 )); do
(*.tar.zma|*.tlz) tar --lzma --help &> /dev/null \
&& tar --lzma -t${verbose:+v}f "$1" \
|| lzcat "$1" | tar x${verbose:+v}f - ;;
(*.tar.zst|*.tzst) tar -I zstd -t${verbose:+v}f "$1" ;;
(*.tar) tar t${verbose:+v}f "$1" ;;
(*.zip|*.jar) unzip -l${verbose:+v} "$1" ;;
(*.rar) ( (( $+commands[unrar] )) \