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

93 lines
1.2 KiB
Bash
Executable File

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