Skip to content

Instantly share code, notes, and snippets.

@sjoerd-dijkstra
Created April 3, 2020 11:40
Show Gist options
  • Save sjoerd-dijkstra/be9cd30b35b0bc4f8c7544c5a764abce to your computer and use it in GitHub Desktop.
Save sjoerd-dijkstra/be9cd30b35b0bc4f8c7544c5a764abce to your computer and use it in GitHub Desktop.
function update
vim +PlugUpdate +PlugUpgrade +qall
fisher
fish_update_completions
switch (uname)
case Linux
sudo apt-get -y update # Fetches the list of available updates
sudo apt-get -y upgrade # Strictly upgrades the current packages
sudo apt-get -y dist-upgrade # Installs updates (new ones) case Darwin
sudo apt-get -y autoremove
case Darwin
softwareupdate -i -a
mas upgrade
brew update
brew upgrade
brew cu --all --yes
brew cleanup
gem update --system
gem update
gem cleanup
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment