The default interactive shell is now zsh. 什麼意思 for mac 10.15.3

升級了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/shellsThe default interactive shell is now zsh.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章