mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
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:
parent
0765e17231
commit
6ecb07406b
4
bashrc
4
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 .
|
||||
|
||||
|
4
zshrc
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user