Apple Intelligence is now available on iPhone, iPad, and Mac!

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to get rid of shell notification?

Hello,

I'm using ADS on MacBook.(Azure Data Studio)

My default terminal is bash.

Every time I start a Terminal ... I have this warning 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 Use zsh as the default shell on your Mac - Apple Support.

--

Question: how could I get rid of the warning message? It's very annoying ...

Thanks

P.S. I think it’s not ADS but rather macOS thing


MacBook Pro 13″, macOS 10.15

Posted on Nov 19, 2023 10:29 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 19, 2023 10:48 AM

Apple officially supports the MIT Licensed Zsh shell now — with Bash being deprecated. That Terminal message is Apple's way of strongly suggesting you switch to Zsh. Whichever is your dominant Bash dotfile (~/.bashrc, ~/.bash_profile, ~/.profile) add the following entry in just one of them, preferably ~/.bash_profile. The tilde (~) is also known as your home folder or $HOME.


export BASH_SILENCE_DEPRECATION_WARNING=1


The next time you launch the Terminal application, the Zsh information will be silenced.

6 replies
Question marked as Top-ranking reply

Nov 19, 2023 10:48 AM in response to susja

Apple officially supports the MIT Licensed Zsh shell now — with Bash being deprecated. That Terminal message is Apple's way of strongly suggesting you switch to Zsh. Whichever is your dominant Bash dotfile (~/.bashrc, ~/.bash_profile, ~/.profile) add the following entry in just one of them, preferably ~/.bash_profile. The tilde (~) is also known as your home folder or $HOME.


export BASH_SILENCE_DEPRECATION_WARNING=1


The next time you launch the Terminal application, the Zsh information will be silenced.

Nov 19, 2023 11:05 AM in response to susja

If ADS is competently implemented, it’ll run with whatever default shell is selected, which means you can switch to zfs, which will get you away from the deprecated (and very dated) bash shell on macOS, and also away from the deprecated shell warning, and ADS can continue to do whatever it is that ADS does.


New users get zfs anyway, so chances are quite good ADS already correctly deals with zfs as the default shell.


Details on switching shells and on the deprecation message: Use zsh as the default shell on your Mac - Apple Support



Nov 19, 2023 1:30 PM in response to susja

susja wrote:

ADS is implemented. But I was afraid that zsh have some different syntax or etc. compared to bash and setup default profile as bash
Now it works fine and doesn’t give me ‘Notification' hence I am all set
Maybe I should leave default zsh in ADS as well but now I will continue with bash
thanks


The deprecation that the now-suppressed diagnostic was referencing will still happen.


ADS should (will?) specify the required scripting language as part of any shell scripts, via the so-called the shebang. I


That specification makes it entirely of the default shell. Which it already needs to be, because of the new zsh default.


You’ll find out more if (when?) the shell deprecation happens, of course. Alas, that’s probably not on your schedule.

How to get rid of shell notification?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.