1
0
Fork 0
mirror of synced 2024-06-26 10:21:10 -04:00
zimfw/modules/archive/init.zsh

30 lines
409 B
Bash
Raw Normal View History

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