Peter's private space
to develop skills, share ideas and experience, etc

Hide iTerm2's zsh notification

The preinstalled Terminal application on a Mac is very basic, at least for me. Thus, I installed iTerm2 that provides a lot of features and functions I was missing; but for a long time now, the default shell in iTerm2 is Z shell. However, I already configured my Bash and I don’t plan to switch. So, what I need to do to avoid the notification “The default interactive shell is now zsh” every time I start a new session?
The solution is very easy:
1.) open the .bash_profile in your home directory:
vi ~/.bash_profile
2.) add the below line:
export BASH_SILENCE_DEPRECATION_WARNING=1

If you ever want to see the message again, just open the above file again and delete the extra line you just added.

Tag Cloud

run android sport availability security oneplus ubuntu stretching stretch review rest proxmox messenger memory_management mac life introduction injury howto fingerprint dell cluster change calisthenics bonsai WFH SEO AFK