【问题标题】:No I'm not able to change my default shell to fish shell不,我无法将我的默认外壳更改为鱼外壳
【发布时间】:2019-04-27 17:29:44
【问题描述】:

我在 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。

【问题讨论】:

  • 您可能需要配置“Terminal.app”以使用默认登录 shell(或明确使用 fish)。

标签: fish


【解决方案1】:

我最终自己解决了这个问题。感谢 Mankarse 给我的提示。

解决办法

Click on ⌘ ,
Click on Profiles
Click on Shell
Now uncheck the "Run Command"

在我的例子中,运行命令仍然指向 bash。这是我的鱼不工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-25
    • 1970-01-01
    • 1970-01-01
    • 2016-10-11
    • 2013-04-28
    • 1970-01-01
    相关资源
    最近更新 更多