该命令在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'任何帮助都是非常感谢的!
发布于 2020-07-06 11:22:38
source不是一个外部命令-没有执行/usr/bin/source。不可能,因为source需要能够改变当前shell的环境,所以它必须是内置的。
只需关闭command即可。
https://stackoverflow.com/questions/62751979
复制相似问题