From 07ec0916951bd11566b0031bed0c0e9b8684b378 Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Fri, 21 Dec 2012 12:54:59 +0200 Subject: [PATCH] bashrc & zshrc: add some tar aliases --- bashrc | 12 ++++++++++++ zshrc | 13 +++++++++++++ 2 files changed, 25 insertions(+) diff --git a/bashrc b/bashrc index ae75b134..56116d27 100755 --- a/bashrc +++ b/bashrc @@ -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 diff --git a/zshrc b/zshrc index 916e4144..242b6680 100755 --- a/zshrc +++ b/zshrc @@ -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