Jake Boutin
Jake Boutin

Reputation: 11

Why are there extra lines of code in terminal with bash on OSX Catalina?

When running my code I seem to be getting a lot of extra lines of code in the terminal.

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.

Upvotes: 0

Views: 321

Answers (1)

Nick Rogers
Nick Rogers

Reputation: 328

Apple has replaced bash shell with zsh shell. So this is just a I or information statement being printed out by the system. If you want to use zsh shell instead of the older bash shell you can follow those steps. However, in order to silence this warning and continue to use bash itself, you can add this command to ~/.bash_profile or ~/.profile:

export BASH_SILENCE_DEPRECATION_WARNING=1

You have to open bash_profile file with a text editor add the above line and then save it. Use any text editor of your choice,

touch ~/.bash_profile; open ~/.bash_profile

or

nano ~/.bash_profile

or

mate ~/.bash_profile

or

vim ~/.bash_profile

Hope this helps.

Upvotes: 1

Related Questions