Skip to content

Instantly share code, notes, and snippets.

@hfreire
Created May 29, 2018 19:52
Show Gist options
  • Save hfreire/559da268d8e0f741195d74ee213a821b to your computer and use it in GitHub Desktop.
Save hfreire/559da268d8e0f741195d74ee213a821b to your computer and use it in GitHub Desktop.
Use bash from MacPorts in OSX
# Install latest bash version using macports
sudo port install bash
# Add macports bash as an available shell interpreter
echo /opt/local/bin/bash >> /etc/shells
# Set macports bash as the default shell interpreter
chsh -s /opt/local/bin/bash
# Open a new terminal window
open -a Terminal -n
# Confirm by checking the bash version in the new terminal window
echo $BASH_VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment