【发布时间】:2022-01-15 15:43:57
【问题描述】:
macOS 新手,我试图将默认 shell 从 zsh 更改为 fish,但我设置了错误的默认 shell 路径。
这就是我所做的:
brew install fish
echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/bin/fish
我应该输入chsh -s /opt/homebrew/bin/fish,但我输入了chsh -s /usr/bin/fish。
现在 iterm2 停止并显示警告消息:会话在启动后很快结束。检查配置文件“默认”中的命令是否正确。,所以我无法运行chsh -s 命令。
我该如何解决这个问题?
我可以在不打开终端的情况下更改默认 shell 路径吗?
【问题讨论】: