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 +}