Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shell 如何像在bash中那样动态地重新加载fish配置文件?_Shell_Configuration Files_Fish - Fatal编程技术网

Shell 如何像在bash中那样动态地重新加载fish配置文件?

Shell 如何像在bash中那样动态地重新加载fish配置文件?,shell,configuration-files,fish,Shell,Configuration Files,Fish,我正在寻找与之相当的source.bashrc。使用 source ~/.config/fish/config.fish 或者,如果您的鱼的年龄超过2.1岁(请参阅) 然后,它将再次来源,所以根据您在那里有什么它将被重新加载。例如,附加到通用变量会添加更多的条目。这一点现在已经过时了。第三条鱼不见了。您也可以将`~``添加到命令行中感谢@Azd325的评论-但不清楚什么是不推荐的!;)查看链接-不推荐使用source仍然有效。假设安装了Oh My Fish,我个人最喜欢的新方法是omf rel

我正在寻找与之相当的
source.bashrc

使用

source ~/.config/fish/config.fish
或者,如果您的鱼的年龄超过2.1岁(请参阅)


然后,它将再次来源,所以根据您在那里有什么它将被重新加载。例如,附加到通用变量会添加更多的条目。

这一点现在已经过时了。第三条鱼不见了。您也可以将`~``添加到命令行中感谢@Azd325的评论-但不清楚什么是不推荐的!;)查看链接-
不推荐使用
source
仍然有效。假设安装了Oh My Fish,我个人最喜欢的新方法是
omf reload
。使用
omf reload
也会向通用变量添加更多条目(如source
~/.config/Fish/config.Fish
或再次运行
Fish
)。
. ~/.config/fish/config.fish