Skip to content

Instantly share code, notes, and snippets.

@ivar
Created September 21, 2015 19:27
Show Gist options
  • Save ivar/b8e7cb20785d0eec0a3f to your computer and use it in GitHub Desktop.
Save ivar/b8e7cb20785d0eec0a3f to your computer and use it in GitHub Desktop.
Ivar's system upgrade script
#!/usr/bin/env ruby
puts "---- updating oh-my-zsh ---------------------------------"
puts `cd ~/.oh-my-zsh && git fetch && git rebase origin/master`
puts "---- updating rbenv ---------------------------------"
puts `cd ~/.rbenv && git pull && cd plugins/ruby-build && git pull`
puts "---- updating vim plugins ---------------------------------"
puts `cd ~/Work/dotfiles && git submodule foreach git pull origin master`
puts "---- updating brewed apps ---------------------------------"
puts `brew update && brew upgrade && brew cleanup`
puts "---- updating brewed cask apps ---------------------------------"
puts `brew upgrade brew-cask && brew cask cleanup`
puts "---- updating heroku cli plugins ---------------------------------"
puts `heroku plugins:update`
puts "---- updating spacemacs ---------------------------------"
puts `cd ~/.emacs.d && git pull --rebase && git submodule sync; git submodule update`
puts "---- finding system updates ---------------------------------"
puts `softwareupdate --list`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment