How to disable warning that MacOSX switched to zsh

December 23, 2023 note-to-self

To avoid this message:

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.

Add this to ~/.bashrc:

export BASH_SILENCE_DEPRECATION_WARNING=1

From Stackoverflow