From ad1169bf39d8cab3e0139299d8200dd18bdc2038 Mon Sep 17 00:00:00 2001 From: Mustaqim Malim Date: Wed, 18 Dec 2019 09:53:54 +0000 Subject: extract: add tar.lz support (#8479) --- plugins/extract/extract.plugin.zsh | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/extract/extract.plugin.zsh') diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh index b7d4e3ba7..5cc30d1ce 100644 --- a/plugins/extract/extract.plugin.zsh +++ b/plugins/extract/extract.plugin.zsh @@ -45,6 +45,7 @@ extract() { && tar --zstd -xvf "$1" \ || zstdcat "$1" | tar xvf - ;; (*.tar) tar xvf "$1" ;; + (*.tar.lz) (( $+commands[lzip] )) && tar xvf "$1" ;; (*.gz) (( $+commands[pigz] )) && pigz -dk "$1" || gunzip -k "$1" ;; (*.bz2) bunzip2 "$1" ;; (*.xz) unxz "$1" ;; -- cgit v1.2.3-70-g09d2