How do you upgrade/update every package on your Mac?
After asking this question many places, I've refined the function to be both more comprehensive and predictable (runs the updates in serial, instead of parallel).

This is the final result in my .zshrc:

function update () {
  softwareupdate --install --all
  (brew update &amp;&amp; brew upgrade &amp;&amp; brew cleanup &amp;&amp; brew doctor)
  mas upgrade
  npm update -g
  (pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip3 install -U)
  (gem update --system &amp;&amp; gem update &amp;&amp; gem cleanup)
  upgrade_oh_my_zsh
  (cd ~/.vim_runtime &amp;&amp; git pull --rebase)
}