From cddb2380e53488c1f11d3311dea3d5caad327831 Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Mon, 16 Jun 2014 13:07:30 +0200 Subject: [PATCH] Added an update script --- bash_profile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bash_profile b/bash_profile index 09d0ab7..e1828d4 100644 --- a/bash_profile +++ b/bash_profile @@ -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 +}