Skip to content

Commit

Permalink
feat(extract): prefer using pbzip2 instead of bunzip2 (ohmyzsh#12280
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Pitel authored and cschuyle committed Apr 18, 2024
1 parent 5934a88 commit 714b9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/extract/extract.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ;;
Expand Down

0 comments on commit 714b9a8

Please sign in to comment.