mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
bashrc & zshrc: add some tar aliases
This commit is contained in:
parent
6ecb07406b
commit
07ec091695
12
bashrc
12
bashrc
@ -366,6 +366,18 @@ alias mkhiso=isohybrid
|
|||||||
alias yum-unlock="rm -rf /var/run/yum.pid"
|
alias yum-unlock="rm -rf /var/run/yum.pid"
|
||||||
alias yum-rm-timedhosts="rm /var/cache/yum/$CPUARCH/17/timedhost*"
|
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 .
|
# Allow custom aliases to be put in .aliases or .bash_aliases .
|
||||||
|
|
||||||
# .aliases
|
# .aliases
|
||||||
|
13
zshrc
13
zshrc
@ -197,6 +197,7 @@ alias -s bz2='tar -xjvf'
|
|||||||
|
|
||||||
# For copy-pasting directly from somewhere
|
# For copy-pasting directly from somewhere
|
||||||
alias %=" "
|
alias %=" "
|
||||||
|
alias #=" "
|
||||||
|
|
||||||
# Supybot specifig. Why to write long command, if you can write short command?
|
# Supybot specifig. Why to write long command, if you can write short command?
|
||||||
alias supybot-config-reload="killall -HUP supybot "
|
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-unlock="rm -rf /var/run/yum.pid"
|
||||||
alias yum-rm-timedhosts="rm /var/cache/yum/$CPUARCH/17/timedhost*"
|
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
|
# .aliases
|
||||||
if [ -f ~/.aliases ]; then
|
if [ -f ~/.aliases ]; then
|
||||||
source ~/.aliases
|
source ~/.aliases
|
||||||
|
Loading…
Reference in New Issue
Block a user