Created
April 3, 2020 11:40
-
-
Save sjoerd-dijkstra/be9cd30b35b0bc4f8c7544c5a764abce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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