Skip to content

Instantly share code, notes, and snippets.

@mwatts272
Created November 2, 2013 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwatts272/7273990 to your computer and use it in GitHub Desktop.
Save mwatts272/7273990 to your computer and use it in GitHub Desktop.
Upgrading the rather risqué bash on Mac OS X. Please Note: 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, just so you know.
# Install Homebrew.
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
# Update Homebrew's formulae.
brew update
# Install GIT using homebrew
brew install git
# Install bash
brew install bash
# Add it to the allowed shells list
sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells"
# Change your shell to the latest version.
chsh -s /usr/local/bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment