summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorIng. Jan Kaláb <jan+github@kalabovi.org>2024-03-12 18:23:08 +0100
committerGitHub <noreply@github.com>2024-03-13 00:23:08 +0700
commit4ad09ab0b10adc90730476bd27f24f93d94728ad (patch)
tree15c86482a9a51e0708a97f7b2ecbca4e0c8dd4b7 /plugins
parent1cc41576d4d2ffe2f63bb893a40ef864dc7f2c98 (diff)
downloadzsh-4ad09ab0b10adc90730476bd27f24f93d94728ad.tar.gz
zsh-4ad09ab0b10adc90730476bd27f24f93d94728ad.tar.bz2
zsh-4ad09ab0b10adc90730476bd27f24f93d94728ad.zip
feat(extract): prefer using `pbzip2` instead of `bunzip2` (#12280)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/extract/extract.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh
index 88d8b0740..80ca50c50 100644
--- a/plugins/extract/extract.plugin.zsh
+++ b/plugins/extract/extract.plugin.zsh
@@ -70,7 +70,7 @@ EOF
(*.tar.lz4) lz4 -c -d "$full_path" | tar xvf - ;;
(*.tar.lrz) (( $+commands[lrzuntar] )) && lrzuntar "$full_path" ;;
(*.gz) (( $+commands[pigz] )) && pigz -cdk "$full_path" > "${file:t:r}" || gunzip -ck "$full_path" > "${file:t:r}" ;;
- (*.bz2) bunzip2 "$full_path" ;;
+ (*.bz2) (( $+commands[pbzip2] )) && pbzip2 -d "$full_path" || bunzip2 "$full_path" ;;
(*.xz) unxz "$full_path" ;;
(*.lrz) (( $+commands[lrunzip] )) && lrunzip "$full_path" ;;
(*.lz4) lz4 -d "$full_path" ;;