Skip to content

Instantly share code, notes, and snippets.

@RISCfuture
Created September 21, 2021 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RISCfuture/712a62a63d5d6d52f1ddc9e176790b90 to your computer and use it in GitHub Desktop.
Save RISCfuture/712a62a63d5d6d52f1ddc9e176790b90 to your computer and use it in GitHub Desktop.
softwareupdate -i -a
if hash mas 2>/dev/null; then
mas upgrade
fi
if hash brew 2>/dev/null; then
brew update
brew upgrade
brew upgrade --cask --greedy
brew cleanup
fi
if hash rvm 2>/dev/null; then
rvm get head
if hash update-gems 2>/dev/null; then
update-gems
fi
fi
if [ -e "$NVM_DIR/nvh.sh" ]; then
pushd $NVM_DIR
git fetch --tags
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
. "$NVM_DIR/nvm.sh"
popd
fi
if hash nodenv 2>/dev/null; then
nodenv versions --bare | xargs zsh -c 'eval "$(nodenv init -)"; for shell; do nodenv shell "$shell"; npm install -g npm@latest; npm update --global; done' zsh
elif hash npm 2>/dev/null; then
npm install -g npm@latest
npm update --global
fi
if hash yarn 2>/dev/null; then
yarn global upgrade --latest
fi
if hash pip3 2>/dev/null; then
pip3 install --upgrade pip setuptools wheel
fi
if hash pip 2>/dev/null; then
pip install --upgrade pip setuptools wheel
fi
if hash tlmgr 2>/dev/null; then
sudo tlmgr update --self
sudo tlmgr update --all
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment