The default interactive shell is now zsh.

升级了macOS Catalina

问题:使用iTerm2出现

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.

原因:

新系统的shell已经更换为zsh,老系统使用的是bash风格,请用此 `chsh -s /bin/zsh` 命令切换。

解决:

1.不使用bash,切换zsh,`chsh -s /bin/zsh`命令切换即可。

2.继续使用bash,但又不想出现提示语,则在

vim ~/.bash_profile最后加上 export BASH_SILENCE_DEPRECATION_WARNING=1

备注:查看系统支持的shell风格 cat /etc/shells

 

posted @ 2021-03-30 20:26  码农骆驼  阅读(510)  评论(0编辑  收藏  举报