Last active
August 29, 2015 14:02
-
-
Save dashmug/c0727763352dddc1c714 to your computer and use it in GitHub Desktop.
a simple script I use for updating my Homebrew, composer, pip, npm, and gem packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
set -x | |
sudo aptitude update | |
sudo aptitude upgrade -y | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2) | |
do | |
sudo npm -g install "$package" | |
done | |
sudo composer self-update | |
gem update | |
pip freeze | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment