Skip to content

Irvyne/upgrade-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Upgrade scripts

OSX

Installation

Automatic

Via curl (preferred way)

curl https://raw.githubusercontent.com/Irvyne/upgrade-scripts/master/install/osx.sh | sh

Via wget

wget -O - https://raw.githubusercontent.com/Irvyne/upgrade-scripts/master/install/osx.sh | sh

Manual

Install repository (git mandatory)

git clone https://github.com/Irvyne/upgrade-scripts ~/.osx-scripts

Import custom functions in your shell

  • Bash (default on mac)
echo "if [ -f "$(echo ~)/.osx-scripts/osx/.env.sh" ] ; then source "$(echo ~)/.osx-scripts/osx/.env.sh" ; fi" >> ~/.bashrc
  • ZSH (preferred but not installed by default, use brew install zsh and install oh-my-zsh after)
echo "if [ -f "$(echo ~)/.osx-scripts/osx/.env.sh" ] ; then source "$(echo ~)/.osx-scripts/osx/.env.sh" ; fi" >> ~/.zshrc

Usage

Open your terminal and enter osx-upgrade to upgrade components/packages (only if present on the system).

  • oh-my-zsh Upgrade Oh My Zsh.
  • homebrew Upgrade Homebrew outdated & unpinned packages + clean old versions & symlinks.
  • composer Upgrade Composer to the latest stable version + upgrade global packages installed.
  • npm Upgrade all NPM packages (globally installed) to the latest version (use Yarn instead if found).
  • pip Upgrade all PIP packages to the latest version.
  • pip3 Upgrade all PIP3 packages to the latest version.
  • gcloud Upgrade all Google Cloud Components to the latest version.
osx-upgrade

osx-upgrade.sh terminal screenshot

About

Useful upgrade scripts (bash & zsh).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages