Created
May 16, 2019 18:21
-
-
Save j33ty/3bcceb08197e84c9b96c89d6047a77ca to your computer and use it in GitHub Desktop.
MacOS is locked to bash 3.2. Manually upgrade to newer versions using this script.
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
# Check current bash version | |
bash --version | |
# Install unofficial version of bash | |
brew install bash | |
# List bash binaries | |
which -a bash | |
# Whitelist new bash shell | |
sudo echo "/usr/local/bin/bash" >> vim /etc/shells | |
# Change default shell of current user | |
chsh -s /usr/local/bin/bash | |
# Change default shell of root user | |
sudo chsh -s /usr/local/bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment