【问题标题】:Can I pass a config file directly to tmuxinator on the command-line?我可以在命令行上将配置文件直接传递给 tmuxinator 吗?
【发布时间】:2018-03-01 21:06:53
【问题描述】:

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

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

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

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

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

我宁愿能够做这样的事情:

$ tmuxinator my_config.yaml

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

【问题讨论】:

    标签: tmux tmuxinator


    【解决方案1】:

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

    目前没有。随时在GitHub 上提出功能请求/问题。

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

    更新:

    正如我在下面的 cmets 中添加的,现在可以使用 -p 标志:

    tmuxinator start -p /path/to/my_config.yml

    【讨论】:

    • 很高兴知道;谢谢。我已提交功能请求:github.com/tmuxinator/tmuxinator/issues/595
    • 对于将来遇到此问题的任何人:从 v0.11.0 开始,tmuxinator 现在支持 OP 所需的用例,并且可以通过以下方式将项目配置文件传递给 tmuxinator:tmuxinator start -p /path/to/my_config.yml
    • @pdoherty926 请将其添加到您的答案中:tmuxinator start -p /path/to/my_config.yml
    • Rubber Duck 的评论有错别字:使用-p 标志时不需要添加<project name>
    猜你喜欢
    • 2014-12-25
    • 1970-01-01
    • 2016-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多