打开 console 出现如下提示
1
2
3The 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.查看系统支持的shell风格命令:
1
cat /etc/shells
解决方法
- 修改默认 shell:
chsh -s /bin/zsh
- 继续使用bash,但又不想出现提示语,则在 ~/.bash_profile 中添加
export BASH_SILENCE_DEPRECATION_WARNING=1
- 修改默认 shell: