diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-12-29 05:36:29 +0100 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2019-12-28 20:36:29 -0800 |
commit | 6bac9eb103fe6c777182746e3a6e84dfc882338b (patch) | |
tree | 2e7230ffd0c085b715b8d2745e3cfb4f7878bddb /plugins/extract/extract.plugin.zsh | |
parent | b0be0439e5d99e186a9ae084eb4ed69c51d4b7cb (diff) | |
download | zsh-6bac9eb103fe6c777182746e3a6e84dfc882338b.tar.gz zsh-6bac9eb103fe6c777182746e3a6e84dfc882338b.tar.bz2 zsh-6bac9eb103fe6c777182746e3a6e84dfc882338b.zip |
extract: add lrz support (#8500)
Diffstat (limited to 'plugins/extract/extract.plugin.zsh')
-rw-r--r-- | plugins/extract/extract.plugin.zsh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh index 5cc30d1ce..349c9a776 100644 --- a/plugins/extract/extract.plugin.zsh +++ b/plugins/extract/extract.plugin.zsh @@ -46,9 +46,11 @@ extract() { || zstdcat "$1" | tar xvf - ;; (*.tar) tar xvf "$1" ;; (*.tar.lz) (( $+commands[lzip] )) && tar xvf "$1" ;; + (*.tar.lrz) (( $+commands[lrzuntar] )) && lrzuntar "$1" ;; (*.gz) (( $+commands[pigz] )) && pigz -dk "$1" || gunzip -k "$1" ;; (*.bz2) bunzip2 "$1" ;; (*.xz) unxz "$1" ;; + (*.lrz) (( $+commands[lrunzip] )) && lrunzip "$1" ;; (*.lzma) unlzma "$1" ;; (*.z) uncompress "$1" ;; (*.zip|*.war|*.jar|*.sublime-package|*.ipsw|*.xpi|*.apk|*.aar|*.whl) unzip "$1" -d $extract_dir ;; |