zim/modules/archive/init.zsh

30 lines
409 B
Bash
Raw Normal View History

2015-12-16 23:00:25 +01: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 15:48:29 +01:00
if (( ${+commands[pigz]} )); then
2015-12-16 23:00:25 +01:00
alias gzip='pigz'
fi
2015-12-19 15:48:29 +01:00
if (( ${+commands[unpigz]} )); then
2015-12-16 23:00:25 +01:00
alias gunzip='pigz'
fi
#
# pbzip2
#
2015-12-19 15:48:29 +01:00
if (( ${+commands[pbzip2]} )); then
2015-12-16 23:00:25 +01:00
alias bzip2='pbzip2'
fi
2015-12-19 15:48:29 +01:00
if (( ${+commands[pbunzip2]} )); then
2015-12-16 23:00:25 +01:00
alias bunzip2='pbzip2'
fi