Skip to content

Instantly share code, notes, and snippets.

@cbschuld
Created July 10, 2018 22:17
Show Gist options
  • Save cbschuld/a81f7159d1625783796d82b61b3820c1 to your computer and use it in GitHub Desktop.
Save cbschuld/a81f7159d1625783796d82b61b3820c1 to your computer and use it in GitHub Desktop.
Update MacOS / OSX to latest Bash from Brew (installing Bash 4 to MacOS)

First, install the latest bash using brew:

brew install bash

Next, add the local bash installation to the list of available shells by adding /usr/local/bin/bash to /etc/shells

sudo sh -c 'echo /usr/local/bin/bash >> /etc/shells'

Finally, change your user's shell via chsh

chsh -s /usr/local/bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment