如果每次打開終端都提示:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s?/bin/zsh`.
原因是原本使用的是bash風(fēng)格,提示語告知現(xiàn)在新系統(tǒng)的shell已經(jīng)更換為zsh,請用此 `chsh -s /bin/zsh` 命令切換。
解決辦法:

(1) 不使用bash,切換zsh,`chsh -s /bin/zsh`命令切換即可。
切換bash
```
chsh -s /bin/bash
```
切換zsh
```
chsh -s /bin/zsh
```
(2) 繼續(xù)使用bash,但又不想出現(xiàn)提示語,則打開文件:
vim ~/.bash_profile
.bash_profile文件最下方加上:
# macOS Catalina
export BASH_SILENCE_DEPRECATION_WARNING=1
然后
ESC ?:wq?
保存(vim保存命令)退出,重新打開命令行警示語消失。