Updated Bash via Homebrew (from 5.0.17 to 5.0.18). Now I get Error message after starting Terminal
One thing that’s easy to set and easier to forget later is if you have your terminal program run a specific command rather then leave you in the default shell that chsh configures.
Have a look there after a brief inspection of your dot files before debugging the startup files systematically is my advice.