Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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