-
-
Save weotch/04709761d4accd60b894591a336e784d to your computer and use it in GitHub Desktop.
Install Bash version 4 on MacOS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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