1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-04-25 15:53:30 +02:00

extract: add tar.lz support (#8479)

This commit is contained in:
Mustaqim Malim
2019-12-18 09:53:54 +00:00
committed by Marc Cornellà
parent 1761685d3e
commit ad1169bf39
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -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" ;;