14

I know Catalina uses zsh as the default login shell and interactive shell, But it is very annoying when I open iTerm.app or run command with /bin/bash, It shows verbose message like below

$ /bin/bash
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.
26

I found the solution on reddit. The solution is also mentioned in the "How to use a different shell without changing the default" section of this Apple support article: https://support.apple.com/en-us/HT208050/.

Add:

export BASH_SILENCE_DEPRECATION_WARNING=1

to $HOME/.bash_profile or $HOME/.profile and restart iTerm, the warning message is gone.

  • 2
    Note that this is also listed in the "For more details" link that's in that very warning ;) – scohe001 Oct 10 at 12:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .