zim/modules/archive/init.zsh

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