Wetts's blog

Stay Hungry, Stay Foolish.

0%

Mac-console中出现默认zsh的提示.md

  1. 打开 console 出现如下提示

    1
    2
    3
    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 https://support.apple.com/kb/HT208050.
  2. 查看系统支持的shell风格命令:

    1
    cat /etc/shells
  3. 解决方法

    1. 修改默认 shell: chsh -s /bin/zsh
    2. 继续使用bash,但又不想出现提示语,则在 ~/.bash_profile 中添加 export BASH_SILENCE_DEPRECATION_WARNING=1