Skip to content

Instantly share code, notes, and snippets.

@konstruktoid
Last active July 5, 2022 08:46
Show Gist options
  • Save konstruktoid/545b1717d58d47366009f5e866abaa18 to your computer and use it in GitHub Desktop.
Save konstruktoid/545b1717d58d47366009f5e866abaa18 to your computer and use it in GitHub Desktop.
#!/bin/sh
if command -v gem; then
if gem --version | grep -q '^3'; then
gem update
fi
fi
if command -v brew; then
brew update
brew upgrade
brew cleanup
brew cleanup --prune-prefix
fi
if command -v pip3; then
$(which python3) -m pip install --upgrade pip
$(which python3) -m pip freeze --local | grep -v '^-e' | cut -d = -f 1 | xargs -n1 $(which python3) -m pip install -U
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment