1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00
zimfw/modules/archive/init.zsh

30 lines
413 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
2016-01-07 16:20:23 -05:00
alias gunzip='unpigz'
2015-12-16 17:00:25 -05:00
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
2016-01-07 16:20:23 -05:00
alias bunzip2='pbunzip2'
2015-12-16 17:00:25 -05:00
fi