Added an update script
This commit is contained in:
11
bash_profile
11
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
|
||||
}
|
||||
|
Reference in New Issue
Block a user