bashrc & zshrc: add some tar aliases

This commit is contained in:
Mika Suomalainen 2012-12-21 12:54:59 +02:00
parent 6ecb07406b
commit 07ec091695
2 changed files with 25 additions and 0 deletions

12
bashrc
View File

@ -366,6 +366,18 @@ alias mkhiso=isohybrid
alias yum-unlock="rm -rf /var/run/yum.pid"
alias yum-rm-timedhosts="rm /var/cache/yum/$CPUARCH/17/timedhost*"
# Archiving and extracting with tar
# This is tartar to avoid conflict with tar
alias tartar="tar cfv "
alias targz="tar cfvz "
alias tarbz2="tar cfvj "
# I have function ex so these are ex-* to avoid conflict.
# ex-tartar and ex-tar, because there is alias tartar and command tar
alias ex-tar="tar xfv "
alias ex-tartar="tar xfv "
alias ex-targz="tar xfvz "
alias ex-tarbz2="tar xfvj "
# Allow custom aliases to be put in .aliases or .bash_aliases .
# .aliases

13
zshrc
View File

@ -197,6 +197,7 @@ alias -s bz2='tar -xjvf'
# For copy-pasting directly from somewhere
alias %=" "
alias #=" "
# Supybot specifig. Why to write long command, if you can write short command?
alias supybot-config-reload="killall -HUP supybot "
@ -317,6 +318,18 @@ alias mkhiso=isohybrid
alias yum-unlock="rm -rf /var/run/yum.pid"
alias yum-rm-timedhosts="rm /var/cache/yum/$CPUARCH/17/timedhost*"
# Archiving and extracting with tar
# This is tartar to avoid conflict with tar
alias tartar="tar cfv "
alias targz="tar cfvz "
alias tarbz2="tar cfvj "
# ex-tartar and ex-tar, because there is alias tartar and command tar
alias ex-tar="tar xfv "
alias ex-tartar="tar xfv "
alias ex-targz="tar xfvz "
alias ex-tarbz2="tar xfvj "
# .aliases
if [ -f ~/.aliases ]; then
source ~/.aliases