Added an update script

This commit is contained in:
Veit Heller
2014-06-16 13:07:30 +02:00
parent b7ca0d34a9
commit cddb2380e5

View File

@@ -59,3 +59,14 @@ netinfo(){
pinfo(){
top -pid `pgrep $1 | tr "\\n" "," | sed 's/,$//' | sed -e's/,/ -pid /g'`
}
update(){
echo "Updating homebrew formulae"
brew update > /dev/null
echo "Updating installed sources(Homebrew)"
brew upgrade outdated &> /dev/null
echo "Updating MacPorts (sudo required)"
sudo port selfupdate > /dev/null
echo "Updating installed sources(MacPorts)"
sudo port upgrade outdated > /dev/null
}