bashrc & zshrc: add alias to reset Yum timedhosts (Fedora 17 only?)

I will probably keep it updated to the latest stable Fedora release,
because Fedora doesn't have LTS.
This commit is contained in:
Mika Suomalainen 2012-12-21 12:44:13 +02:00
parent 0765e17231
commit 6ecb07406b
2 changed files with 8 additions and 0 deletions

4
bashrc
View File

@ -184,6 +184,9 @@ PATH=$HOME/.local/bin:$HOME/.local/games:$PATH
# Uses most as the default pager if you uncomment line below. (You will also get colourful manpages :D). # Uses most as the default pager if you uncomment line below. (You will also get colourful manpages :D).
export PAGER=most export PAGER=most
# Sets environmnet variable CPUARCH to output of "uname -p"
CPUARCH=`uname -p`
##### Aliases RJ706I ##### ##### Aliases RJ706I #####
# To get sudo work with aliases. # To get sudo work with aliases.
@ -361,6 +364,7 @@ alias mkhiso=isohybrid
# Yum # Yum
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*"
# Allow custom aliases to be put in .aliases or .bash_aliases . # Allow custom aliases to be put in .aliases or .bash_aliases .

4
zshrc
View File

@ -111,6 +111,9 @@ PATH=$HOME/.local/bin:$HOME/.local/games:$PATH
# Uses most as the default pager if you uncomment line below. (You will also get colourful manpages :D). # Uses most as the default pager if you uncomment line below. (You will also get colourful manpages :D).
export PAGER=most export PAGER=most
# Sets environmnet variable CPUARCH to output of "uname -p"
CPUARCH=`uname -p`
##### Aliases RJ706I ##### ##### Aliases RJ706I #####
# To get sudo work with aliases. # To get sudo work with aliases.
@ -312,6 +315,7 @@ alias mkhiso=isohybrid
# Yum # Yum
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*"
# .aliases # .aliases
if [ -f ~/.aliases ]; then if [ -f ~/.aliases ]; then