From 6ecb07406b4b010090f0de414c2070d93363aa79 Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Fri, 21 Dec 2012 12:44:13 +0200 Subject: [PATCH] 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. --- bashrc | 4 ++++ zshrc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bashrc b/bashrc index 27bd0092..ae75b134 100755 --- a/bashrc +++ b/bashrc @@ -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). export PAGER=most +# Sets environmnet variable CPUARCH to output of "uname -p" +CPUARCH=`uname -p` + ##### Aliases RJ706I ##### # To get sudo work with aliases. @@ -361,6 +364,7 @@ alias mkhiso=isohybrid # Yum 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 . diff --git a/zshrc b/zshrc index 9fc134ef..916e4144 100755 --- a/zshrc +++ b/zshrc @@ -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). export PAGER=most +# Sets environmnet variable CPUARCH to output of "uname -p" +CPUARCH=`uname -p` + ##### Aliases RJ706I ##### # To get sudo work with aliases. @@ -312,6 +315,7 @@ alias mkhiso=isohybrid # Yum alias yum-unlock="rm -rf /var/run/yum.pid" +alias yum-rm-timedhosts="rm /var/cache/yum/$CPUARCH/17/timedhost*" # .aliases if [ -f ~/.aliases ]; then