Created
September 21, 2021 18:17
-
-
Save RISCfuture/712a62a63d5d6d52f1ddc9e176790b90 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
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