The default interactive shell is now zsh.
To update your account to use zsh, please runchsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
原因:
新系統(tǒng)的shell已經(jīng)更換為zsh,老系統(tǒng)使用的是bash風(fēng)格,請(qǐng)用此 chsh -s /bin/zsh 命令切換。
解決:
1.不使用bash,切換zsh,chsh -s /bin/zsh命令切換即可。
2.繼續(xù)使用bash,但又不想出現(xiàn)提示語(yǔ),則在
vim ~/.bash_profile最后加上 export BASH_SILENCE_DEPRECATION_WARNING=1
備注:查看系統(tǒng)支持的shell風(fēng)格 cat /etc/shells