Skip to content

Commit 40fd8cc

Browse files
jeffbyrnesmathiasbynens
authored andcommitted
.brew.sh: Automate switch to brew-installed Bash
Closes mathiasbynens#658.
1 parent 270f3d3 commit 40fd8cc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bin/bash

-1
This file was deleted.

brew.sh

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ brew install bash
2626
brew tap homebrew/versions
2727
brew install bash-completion2
2828

29+
# Switch to using brew-installed bash as default shell
30+
if ! fgrep -q '/usr/local/bin/bash' /etc/shells; then
31+
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells;
32+
chsh -s /usr/local/bin/bash;
33+
fi;
34+
2935
# Install `wget` with IRI support.
3036
brew install wget --with-iri
3137

0 commit comments

Comments
 (0)