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

92 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
#
# macOS
# -------------
echo ""
echo "$(tput setaf 136) Update macOS Apps"
echo "------------------------------$(tput sgr0)"
#sudo softwareupdate -i -a
mas upgrade
#
# Homebrew
# -------------
echo ""
echo ""
echo "$(tput setaf 136) Update Homebrew"
echo "------------------------------$(tput sgr0)"
brew update
brew upgrade
brew cleanup
#
# npm
# -------------
echo ""
echo ""
echo "$(tput setaf 136) Update npm"
echo "------------------------------$(tput sgr0)"
# update npm itself
npm install npm -g
# update all global packages
npm update -g
#
# Atom
# -------------
echo ""
echo ""
echo "$(tput setaf 136) Update Atom packages"
echo "------------------------------$(tput sgr0)"
apm upgrade --no-confirm
apm clean
#
# Ruby
# -------------
echo ""
echo ""
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 ""
echo ""
echo "$(tput setaf 136) Refresh GPG keys"
echo "------------------------------$(tput sgr0)"
gpg --refresh-keys
echo ""
echo "$(tput setaf 64) -------------------------------"
echo " ✓ all done$(tput sgr0)"