I'd like to use homebrew bash (5.x) instead of the macOS built-in one (3.3). How can I do it?
1. I run brew install bash
2. I added /opt/homebrew/bin/bash to /etc/shells
3. I run chsh -s /opt/homebrew/bin/bash
Yet, when I open a new terminal this is what it says
echo $BASH && echo $BASH_VERSION
/opt/homebrew/bin/bash
3.2.57(1)-release
If I manually run bash, this is that it says
echo $BASH && echo $BASH_VERSION
/opt/homebrew/bin/bash
5.2.32(1)-release
So somehow the $BASH variable is the same but $BASH_VERSION is the old when using chsh / opening new terminal.
1. I run brew install bash
2. I added /opt/homebrew/bin/bash to /etc/shells
3. I run chsh -s /opt/homebrew/bin/bash
Yet, when I open a new terminal this is what it says
echo $BASH && echo $BASH_VERSION
/opt/homebrew/bin/bash
3.2.57(1)-release
If I manually run bash, this is that it says
echo $BASH && echo $BASH_VERSION
/opt/homebrew/bin/bash
5.2.32(1)-release
So somehow the $BASH variable is the same but $BASH_VERSION is the old when using chsh / opening new terminal.