2015-12-16 17:00:25 -05:00
|
|
|
#
|
|
|
|
# Archive aliases
|
|
|
|
#
|
|
|
|
|
|
|
|
# if pigz/pbzip2 are available, alias them as they are drop-in replacements for gzip and bzip2, respectively.
|
|
|
|
|
|
|
|
#
|
|
|
|
# pigz
|
|
|
|
#
|
|
|
|
|
2015-12-19 09:48:29 -05:00
|
|
|
if (( ${+commands[pigz]} )); then
|
2015-12-16 17:00:25 -05:00
|
|
|
alias gzip='pigz'
|
|
|
|
fi
|
|
|
|
|
2015-12-19 09:48:29 -05:00
|
|
|
if (( ${+commands[unpigz]} )); then
|
2015-12-16 17:00:25 -05:00
|
|
|
alias gunzip='pigz'
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# pbzip2
|
|
|
|
#
|
|
|
|
|
2015-12-19 09:48:29 -05:00
|
|
|
if (( ${+commands[pbzip2]} )); then
|
2015-12-16 17:00:25 -05:00
|
|
|
alias bzip2='pbzip2'
|
|
|
|
fi
|
|
|
|
|
2015-12-19 09:48:29 -05:00
|
|
|
if (( ${+commands[pbunzip2]} )); then
|
2015-12-16 17:00:25 -05:00
|
|
|
alias bunzip2='pbzip2'
|
|
|
|
fi
|