Bash
A Unix shell.
A GNU project.
… write the definition line … … move Bash config in here …
A portable shebang: #!/usr/bin/env bash
Apple changed the default shell on macOS from Bash to Zsh because the GNU project re-licensed Bash from GPL 2 to GPL 3 that enforces strict ethics and freedom. Apple shipped the old version of Bash for a while and then switched to Zsh.
- Install modern Bash with
brew install bash - Add
/opt/homebrew/bin/bashto/etc/shells. - Run
chsh -s /opt/homebrew/bin/bash - check that a
FILEexists:test -f FILE