Skip to content

Instantly share code, notes, and snippets.

What would you like to do?


alias up='brew update; brew upgrade --cleanup; brew prune; npm install -g npm; npm update -g; gem update --system; gem update; gem cleanup; pip3 freeze --local | grep -v "^\-e" | cut -d = -f 1  | xargs -n1 pip3 install -U'

This alias can handle;

  • Brew
  • Pip3
  • Gem
  • Npm

All these package managers would upgrade all installed global packages and cleanup mess.

After type single command into .zshrc just run

source ~/.zshrc

Now up will upgrades all package managers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.