1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-22 09:47:21 +01:00
dotfiles/bin/update-everything.sh

82 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
#
# OS X
# -------------
#sudo softwareupdate -i -a
#
# Homebrew
# -------------
echo "$(tput setaf 136)"
echo " Update Homebrew "
echo "============================================="
echo "$(tput sgr0)" # reset
brew update
brew upgrade
brew cleanup
echo "$(tput setaf 64)" # green
echo "---------------------------------------------"
echo " ✓ done"
echo "$(tput sgr0)" # reset
#
# npm
# -------------
echo "$(tput setaf 136)"
echo " Update npm "
echo "============================================="
echo "$(tput sgr0)" # reset
# update npm itself
npm install npm -g
# update all global packages
#npm update -g
sh npm-upgrade.sh
echo "$(tput setaf 64)" # green
echo "---------------------------------------------"
echo " ✓ done"
echo "$(tput sgr0)" # reset
#
# Ruby
# -------------
echo "$(tput setaf 136)"
echo " Update rvm "
echo "============================================="
echo "$(tput sgr0)" # reset
# update rvm itself
rvm get latest
rvm cleanup all
echo "$(tput setaf 64)" # green
echo "---------------------------------------------"
echo " ✓ done"
echo "$(tput sgr0)" # reset
#
# Gems
# -------------
echo "$(tput setaf 136)"
echo " Update gems "
echo "============================================="
echo "$(tput sgr0)" # reset
gem update --system
gem update
echo "$(tput setaf 64)" # green
echo "---------------------------------------------"
echo " ✓ done"
echo "$(tput sgr0)" # reset