dotfiles/setup/bash.sh
2012-11-09 14:06:09 +04:00

9 lines
223 B
Bash
Executable File

#!/bin/bash
# Installs Bash 4 and registers it as a default shell
brew install bash
grep -Fxq '/usr/local/bin/bash' /etc/shells || sudo bash -c "echo /usr/local/bin/bash >> /etc/shells"
chsh -s /usr/local/bin/bash $USER