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

Solution 1:

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.