macOS-provided bash is bizarrely ancient. zsh is their preferred replacement, which is now default.
To get a newer bash, we need to fall back to homebrew:
- Install homebrew (enable it in bash_profile)
- Install bash and bash-completion via
brew install bash bash-completion
- Old path was
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion new path is somewhere in /opt/homebrew I think
macOS-provided bash is bizarrely ancient.
zshis their preferred replacement, which is now default.To get a newer bash, we need to fall back to homebrew:
brew install bash bash-completion[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completionnew path is somewhere in/opt/homebrewI think