Created
April 19, 2013 00:25
-
-
Save jourdein/5417250 to your computer and use it in GitHub Desktop.
Upgrade BASH using Brew on Mountain Lion
This file contains hidden or 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
brew update | |
brew install bash | |
# Add this install of bash to the allowed shells list: | |
sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells" | |
# Homebrew installs things to /usr/local/Cellar/, then symlinks any binaries to /usr/local/bin, so you've now got the latest bash sitting at /usr/local/bin/bash | |
chsh -s /usr/local/bin/bash | |
# Checks | |
echo $SHELL #/usr/local/bin/bash | |
echo $BASH_VERSION # 4.2.45(2)-release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment