Skip to content

Instantly share code, notes, and snippets.

@weotch
Forked from samnang/gist:1759336
Last active November 21, 2016 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weotch/04709761d4accd60b894591a336e784d to your computer and use it in GitHub Desktop.
Save weotch/04709761d4accd60b894591a336e784d to your computer and use it in GitHub Desktop.
Install Bash version 4 on MacOS X
# Install Bash 4 using homebrew
brew install bash
# Add the new shell to the list of legit shells
sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells"
# Change the shell for the user
chsh -s /usr/local/bin/bash
# Restart terminal.app (new window works too)
# Check for Bash 4 and /usr/local/bin/bash...
echo $BASH && echo $BASH_VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment