macOS终端terminal无法输入,显示进程已完成,item提示A session ended very soon after starting. Check that the comman...

问题如下

终端



item


一脸懵逼。。。
只是执行了一个chsh -s /bin/bash,想从zsh切换回bash
然后就这样了。。。

问题原因

因为昨天刚装的item2和zsh,装的时候不知道干了什么把系统里的/bin/bash 文件玩坏了,所以执行chsh -s /bin/bash的时候相当于切换到一个坏的bash下了,所以打开shell当然就报错了

解决方法

  • 修改shell的打开方式,还原成zsh打开
  • mac系统不同所以修改的地方也不同,具体参考在 Mac 上的“终端”中更改默认 shell
  • Done

你可能感兴趣的:(macOS终端terminal无法输入,显示进程已完成,item提示A session ended very soon after starting. Check that the comman...)