Seperated update from bashrc. Fixed link to customrc.
This commit is contained in:
parent
b85f3c7285
commit
e1c47129f7
2 changed files with 36 additions and 1 deletions
2
bashrc
2
bashrc
|
@ -76,4 +76,6 @@ extract () {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Source external file
|
# Source external file
|
||||||
|
if [[ -f ~/.customrc ]]; then
|
||||||
. ~/.customrc
|
. ~/.customrc
|
||||||
|
fi
|
||||||
|
|
33
update.sh
Normal file
33
update.sh
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# Pacman/Yaourt
|
||||||
|
if command -v 'pacman' >/dev/null $$ [[ $?==0 ]]; then
|
||||||
|
alias distro='echo Arch'
|
||||||
|
alias install='yaourt -S '
|
||||||
|
alias fupdate='echo "Updating system" && yaourt -Syyua --devel && echo "Cleaning" && sudo pacman -Rs $(pacman -Qtdq))'
|
||||||
|
alias search='yaourt -Ss '
|
||||||
|
alias paccache='paccache -rv'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Debian
|
||||||
|
if command -v 'apt-get' >/dev/null && [[ $?==0 ]]; then
|
||||||
|
alias distro='echo Debian'
|
||||||
|
alias install='sudo apt-get install '
|
||||||
|
alias fupdate='sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade'
|
||||||
|
alias search='sudo apt-cache search '
|
||||||
|
fi
|
||||||
|
|
||||||
|
# RHEL
|
||||||
|
if command -v 'yum' >/dev/null && [[ $?==0 ]]; then
|
||||||
|
alias distro='echo Red Hat'
|
||||||
|
alias install='sudo yum install '
|
||||||
|
alias fupdate='sudo yum upgrade'
|
||||||
|
alias search='sudo yum search '
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Gentoo
|
||||||
|
if command -v 'emerge' >/dev/null && [[ $?==0 ]]; then
|
||||||
|
alias distro='echo Gentoo'
|
||||||
|
alias install='sudo emerge -av '
|
||||||
|
alias fupdate='echo "Updating ports" && sudo emerge-webrsync && echo "Updating system" && sudo emerge --update --deep --with-bdeps=y --newuse --ask @world && echo "Cleaning" && sudo emerge --depclean'
|
||||||
|
alias search='emerge --search '
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue