MAC The default interactive shell is now zsh.

简介: MAC The default interactive shell is now zsh.

一、错误介绍

  • 升级 MAC 版本之后,终端报错:
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.
  • 翻译为:
默认的交互式 shell 现在是 zsh。
要更新您的帐户以使用 zsh,请运行 `chsh-s/bin/zsh`。
详情请访问 https://support.apple.com/kb/HT208050。

二、问题解决

  • 列出 shell 列表
$ more /etc/shells
/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
  • 以前老系统默认使用的是 /bin/bash,现在推荐使用 /bin/zsh,切换命令:
$ chsh -s /bin/zsh
dengzemiaodeMacBook-Pro:~ dengzemiao$ chsh -s /bin/zsh
Changing shell for dengzemiao.
Password for dengzemiao: 输入命令即可生效
  • 如果使用不习惯,可以切换原来的 /bin/bash,操作与上面一致
$ chsh -s /bin/bash
相关文章
|
6月前
mac zsh: command not found: pip解决方法
mac zsh: command not found: pip解决方法
364 0
|
6天前
|
Linux Shell
mac/linux提示bash: telnet: command not found
mac/linux提示bash: telnet: command not found
|
9月前
|
Shell Linux
解决脚本文件无法执行conda命令的问题:CommandNotFoundError: Your shell has not been properly configured to use
使用Linux系统时,有时候希望利用一个脚本执行多条命令来节省时间,其中如果安装有anaconda,需要切换环境或者关闭conda环境,按道理说,在终端里可以通过命令
498 0
|
9月前
|
Shell Linux C++
报错:CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘. 问题解决
报错:CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘. 问题解决
174 0
|
Shell iOS开发 MacOS
bash: air: command not found
bash: air: command not found
141 0
|
Shell
CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.简单解决方案
CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.简单解决方案
1615 0
CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.简单解决方案
|
Linux
登录linux黑屏the configuration defaults for gnome power manager have not been installed correctly无法进入
登录linux黑屏the configuration defaults for gnome power manager have not been installed correctly无法进入
338 0
登录linux黑屏the configuration defaults for gnome power manager have not been installed correctly无法进入
|
Ubuntu Shell 开发工具
Oh-My-Zsh!提高你CLI(Command-line interface )的神奇工具 - Ubuntu教程
原文更新地址 https://github.com/shellhub/blog/issues/25 Oh-My-Zsh!提高你CLI(Command-line interface )的神奇工具 - Ubuntu教程 1_dcfi6nexitpjcfpgdloonw 我是命令行界面的忠实粉丝.
2119 0