该命令在 Fish 终端中运行良好:
source ~/.config/fish/config.fish
这是config.fish中相关的fish函数
function sf
command source ~/.config/fish/config.fish
end
当我运行它时,我收到此错误:
Command 'source' not found, did you mean:
command 'gource' from deb gource (0.51-1build1)
Try: sudo apt install <deb name>
~/.config/fish/config.fish (line 59):
command source ~/.config/fish/config.fish
^
in function 'sf'
感谢任何帮助!
最佳答案
source
不是一个外部命令 - 没有/usr/bin/source 可以执行。不可能,因为 source
需要能够更改当前 shell 的环境,因此它必须是内置的。
只需省略命令
即可。
关于linux - Fish shell 中的 source 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62751979/