gpt4 book ai didi

tmux - 我可以在命令行上将配置文件直接传递给 tmuxinator 吗?

转载 作者:行者123 更新时间:2023-12-03 23:55:32 24 4
gpt4 key购买 nike

我是 tmuxinator 的新手,如果这是一个幼稚的问题,请原谅我。

我有一个 tmuxinator 配置文件(例如 my_config.yaml )存储在共享项目的源树中。

对于其他人使用它,AFAICT 他们首先必须从配置文件到他们的主目录内部建立一个软链接(soft link),然后单独启动 tmuxinator:

$ ln -rs my_config.yaml ~/.tmuxinator/
$ tmuxinator my_config

这很不方便,并且还要求您所有的配置文件都有唯一的文件名,以免它们在 ~/.tmuxinator/ 中发生冲突.

我宁愿能够做类似的事情:
$ tmuxinator my_config.yaml

有没有办法在命令行上将配置文件传递给 tmuxinator?

最佳答案

Is there a way to pass the config file to tmuxinator on the command line?



不是现在。随时在 GitHub 上打开功能请求/问题.

但是,Tmuxinator 确实支持项目级别的配置文件。如果将 my_config.yml 移动到/project/root/.tmuxinator,则可以通过 tmuxinator start . 启动它(从项目根目录)或 tmuxinator local .

更新:

正如我在下面的评论中添加的,现在可以使用 -p旗帜:
tmuxinator start -p /path/to/my_config.yml

关于tmux - 我可以在命令行上将配置文件直接传递给 tmuxinator 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49058693/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com