dotfiles/bin/update-everything.sh

77 lines
1.1 KiB
Bash
Raw Normal View History

2014-11-03 17:40:13 +01:00
#!/bin/bash
#
# OS X
# -------------
#sudo softwareupdate -i -a
#
# Homebrew
# -------------
echo "$(tput setaf 136)"
2015-01-13 16:37:25 +01:00
echo "Update Homebrew "
echo "=============================="
2014-11-03 17:40:13 +01:00
echo "$(tput sgr0)" # reset
brew update
brew upgrade
brew cleanup
#
# npm
# -------------
echo "$(tput setaf 136)"
2015-01-13 16:37:25 +01:00
echo "Update npm "
echo "============================="
2014-11-03 17:40:13 +01:00
echo "$(tput sgr0)" # reset
# update npm itself
npm install npm -g
# update all global packages
#npm update -g
sh npm-upgrade.sh
#
# Ruby
# -------------
echo "$(tput setaf 136)"
2015-01-13 16:37:25 +01:00
echo "Update rvm "
echo "============================="
2014-11-03 17:40:13 +01:00
echo "$(tput sgr0)" # reset
# update rvm itself
2015-01-13 16:37:25 +01:00
rvm get stable
rvm reload
# update all gemsets
rvm gemset update
# cleanup
2014-11-03 17:40:13 +01:00
rvm cleanup all
#
# Gems
# -------------
echo "$(tput setaf 136)"
2015-01-13 16:37:25 +01:00
echo "Update gems "
echo "=============================="
2014-11-03 17:40:13 +01:00
echo "$(tput sgr0)" # reset
gem update --system
gem update
2015-01-13 16:37:25 +01:00
2014-11-03 17:40:13 +01:00
echo "$(tput setaf 64)" # green
2015-01-13 16:37:25 +01:00
echo "-------------------------------"
echo " ✓ all done"
2014-11-03 17:40:13 +01:00
echo "$(tput sgr0)" # reset