Skip to content

Instantly share code, notes, and snippets.

@qrg
Last active August 8, 2021 07:23
Show Gist options
  • Select an option

  • Save qrg/e0e6c510754e9fd660852ed23fcbfea3 to your computer and use it in GitHub Desktop.

Select an option

Save qrg/e0e6c510754e9fd660852ed23fcbfea3 to your computer and use it in GitHub Desktop.
#!/bin/bash -v
UNIX_NAME=`uname`
ARCH=`arch -arm64 uname -m`
BREW_PREFIX=''
if [ "${UNIX_NAME}" = 'Darwin' -a "${ARCH}" = 'arm64' ]; then
BREW_PREFIX='arch -arm64'
fi
~/scripts/daily-update.fish
$BREW_PREFIX brew update
$BREW_PREFIX brew upgrade
$BREW_PREFIX brew upgrade --cask
$BREW_PREFIX brew cleanup -s
gem update
gem cleanup
gibo update
tldr --update --clear-cache
npm update -g
yarn global upgrade
$BREW_PREFIX brew doctor
nodenv update-version-defs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment