Skip to content

Instantly share code, notes, and snippets.

@junipertcy
Created April 20, 2020 22:42
Show Gist options
  • Save junipertcy/a02a5b68531fe33bb6bdcff665ec3bbd to your computer and use it in GitHub Desktop.
Save junipertcy/a02a5b68531fe33bb6bdcff665ec3bbd to your computer and use it in GitHub Desktop.
Useful one-liners
# Unlink and then relink all brew stuff
brew list -1 | while read line; do brew unlink $line; brew link $line; done
# Update all pip packages
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment