为什么我不能在/ etc / shells中添加鱼?

时间:2018-07-11 01:38:49

标签: macos shell unix command-line fish

我正在尝试使用鱼壳作为OSX上的默认壳。我已经使用brew安装了鱼壳,当我想将其添加到/ etc / shells时出现此错误:

tee: /etc/shells: No such file or directory

这是我使用的命令行:

echo "usr/local/bin/fish" | sudo tee -a /etc/shells

来源:https://hackercodex.com/guide/install-fish-shell-mac-ubuntu/

我的路线出问题了吗?

2 个答案:

答案 0 :(得分:1)

因为在Brew中安装了fish,所以fish的二进制文件与linux发行版不同:

您应该这样做:

m_camera = new QCamera(this);
m_videoProbe = new QVideoProbe(this);

答案 1 :(得分:0)

自制软件/usr/local/bin中安装指向二进制文件的链接。因此,如果您运行:

type fish

它应该告诉您/usr/local/bin/fish,这意味着您需要编辑/etc/shells并添加/usr/local/bin/fish