不,我无法将默认 shell 更改为 fish shell
No I'm not able to change my default shell to fish shell
我在 Mac 10.13.6
我已经阅读了这篇长文和其中的 10 个有效解决方案
How to set my default shell on Mac?
但对我没有任何作用。
这是我试过的方法
brew install fish
sudo vi /etc/shells
Add line '/usr/local/bin/fish' and save the file
csh -s /usr/local/bin/fish
press ⌘ ,
Shell Open with
Command complete path '/usr/local/bin/fish'
Go to system preferences
Users and Groups
select my user
click on lock icon and enter root password
go into advanced options
change Login Shell to /usr/local/bin/fish
现在我重新启动机器和 运行 终端。并且仍然使用 BASH.
最后我自己解决了这个问题。感谢 Mankarse 给我的提示。
这是解决方案
Click on ⌘ ,
Click on Profiles
Click on Shell
Now uncheck the "Run Command"
在我的例子中,运行 命令仍然指向 bash。这是我的鱼没用。
我在 Mac 10.13.6
我已经阅读了这篇长文和其中的 10 个有效解决方案
How to set my default shell on Mac?
但对我没有任何作用。
这是我试过的方法
brew install fish
sudo vi /etc/shells
Add line '/usr/local/bin/fish' and save the file
csh -s /usr/local/bin/fish
press ⌘ ,
Shell Open with
Command complete path '/usr/local/bin/fish'
Go to system preferences
Users and Groups
select my user
click on lock icon and enter root password
go into advanced options
change Login Shell to /usr/local/bin/fish
现在我重新启动机器和 运行 终端。并且仍然使用 BASH.
最后我自己解决了这个问题。感谢 Mankarse 给我的提示。
这是解决方案
Click on ⌘ ,
Click on Profiles
Click on Shell
Now uncheck the "Run Command"
在我的例子中,运行 命令仍然指向 bash。这是我的鱼没用。