Tag Archives: macOS Catalina new Shell

[MacOS Catalina new Shell] How to Solve Error: The default interactive shell is now zsh

Today, we upgraded MacOS Catalina

1: When using the command desk, the following problems appear:

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.

2: I used to use bash style. The prompt tells me that the shell of the new system has been changed to Zsh. Please use the command ‘Chsh – S/bin/Zsh’ to switch

3: To view the shell style commands supported by the system:

cat /etc/shells

4: My system supports shell:

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.
localhost:~ yuzhilin$ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
localhost:~ yuzhilin$

5: Solutions

(1) do not use bash, switch Zsh, ` Chsh – S/bin/Zsh ‘command to switch

(2) continue to use bash, but do not want to appear prompts, then

vim ~/.bash_profile

.bash_ At the bottom of the profile file, add

# macOS Catalina
export BASH_SILENCE_DEPRECATION_WARNING=1

: WQ save exit reopen command line warning disappears