Last Updated on 2020-12-18 by Clay
Introduction
After I moving my work space from Linux to Mac OS, I spent more time to configure my MacBook environment, try to make its use experience like my old partner Linux.
So far, I have many kind of problem want to solve.
Today, I want to record how to hide the Terminal.app warning message when it startup:
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.
On my screen it looks like this:
It looks very verbose. Why I get this warning message? Because I change the default shell script language zsh to bash.
Solution
The solution is very easy, go to ~/.bash_profile and set environment variables:
export BASH_SILENCE_DEPRECATION_WARNING=1
Save it and reopen terminal, you should see the warning message disapper.
But I am very curious. Will BASH_SILENCE_DEPRECATION make some other important warning message disappear?
I checked the Internet for a long time, and it seems that there is no discussion. Does it means it's still safe?
References
- https://www.addictivetips.com/mac-os/hide-default-interactive-shell-is-now-zsh-in-terminal-on-macos/
- https://www.saintlad.com/hide-default-interactive-shell-is-now-zsh-in-terminal-on-macos/
- https://www.reddit.com/r/osx/comments/cmm2on/catalina_suppress_zsh_warning/