Skip to content

Instantly share code, notes, and snippets.

@j33ty
Created May 16, 2019 18:21
Show Gist options
  • Save j33ty/3bcceb08197e84c9b96c89d6047a77ca to your computer and use it in GitHub Desktop.
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.
# 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