dotfiles/bin/update-everything.sh

73 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
#
# macOS
# -------------
echo "$(tput setaf 136)
Update macOS Apps"
echo "------------------------------$(tput sgr0)"
#sudo softwareupdate -i -a
mas upgrade
#
# Homebrew
# -------------
echo "$(tput setaf 136)
Update Homebrew"
echo "------------------------------$(tput sgr0)"
brew update
brew upgrade
brew cleanup
#
# npm
# -------------
echo "$(tput setaf 136) Update npm"
echo "------------------------------$(tput sgr0)"
# update npm itself
npm install npm -g
# update all global packages
npm update -g
#
# Ruby
# -------------
echo "$(tput setaf 136)
Update rvm"
echo "------------------------------$(tput sgr0)"
# update rvm itself
rvm get stable
rvm reload
# update all gemsets
rvm gemset update
# cleanup
rvm cleanup all
#
# GPG
# -------------
echo "$(tput setaf 136)
Refresh GPG keys"
echo "------------------------------$(tput sgr0)"
gpg --refresh-keys
echo "$(tput setaf 64)
-------------------------------"
echo " ✓ all done$(tput sgr0)"