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

80 lines
1.2 KiB
Bash
Raw Normal View History

2015-07-26 20:27:32 +02:00
#!/usr/bin/env bash
2014-11-03 17:40:13 +01:00
#
2016-11-03 22:23:20 +01:00
# macOS
2014-11-03 17:40:13 +01:00
# -------------
2016-11-03 22:23:20 +01:00
echo "$(tput setaf 136)"
echo "Update macOS Apps "
echo "------------------------------"
echo "$(tput sgr0)" # reset
2014-11-03 17:40:13 +01:00
#sudo softwareupdate -i -a
2016-11-03 22:23:20 +01:00
mas upgrade
2014-11-03 17:40:13 +01:00
#
# Homebrew
# -------------
echo "$(tput setaf 136)"
2015-01-13 16:37:25 +01:00
echo "Update Homebrew "
2016-10-14 21:59:34 +02:00
echo "------------------------------"
2014-11-03 17:40:13 +01:00
echo "$(tput sgr0)" # reset
brew update
2016-10-14 21:59:34 +02:00
brew upgrade
2014-11-03 17:40:13 +01:00
brew cleanup
#
# npm
# -------------
echo "$(tput setaf 136)"
2015-01-13 16:37:25 +01:00
echo "Update npm "
2016-10-14 21:59:34 +02:00
echo "------------------------------"
2014-11-03 17:40:13 +01:00
echo "$(tput sgr0)" # reset
# update npm itself
npm install npm -g
# update all global packages
2015-03-28 02:42:45 +01:00
npm update -g
2014-11-03 17:40:13 +01:00
#
# Ruby
# -------------
echo "$(tput setaf 136)"
2015-01-13 16:37:25 +01:00
echo "Update rvm "
2016-10-14 21:59:34 +02:00
echo "------------------------------"
2014-11-03 17:40:13 +01:00
echo "$(tput sgr0)" # reset
# update rvm itself
2016-11-15 22:25:44 +01:00
rvm get stable
rvm reload
2015-01-13 16:37:25 +01:00
# update all gemsets
rvm gemset update
# cleanup
2014-11-03 17:40:13 +01:00
rvm cleanup all
2016-11-15 22:25:44 +01:00
#
# GPG
# -------------
echo "$(tput setaf 136)"
echo "Refresh GPG keys "
echo "------------------------------"
echo "$(tput sgr0)" # reset
gpg --refresh-keys
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"
2015-07-26 20:27:32 +02:00
echo "$(tput sgr0)" # reset