【问题标题】:Is it possible to specify multiple commands in `tmuxinator`'s `pre_window`?是否可以在`tmuxinator`的`pre_window`中指定多个命令?
【发布时间】:2015-02-17 19:11:39
【问题描述】:

tmuxinator 配置文件中,您可以指定多个命令应在单个shell 中运行,例如:

windows:
  - logs:
    - cd ~/project/log
    - tail -f db.log

你能对pre_window做同样的事情吗?以下事情没有奏效:

1.

pre_window:
  - cmd1
  - cmd2

2.

pre_window: [ cmd1,
  cmd ]

3.

pre_window:
  - a: cmd1
  - b: cmd2

我可能遗漏了一些相当简单的东西;我不太了解 YAML,也不太了解tmuxinator 的实现。

我已经知道(并且正在使用)

pre_window: cmd1 && cmd2

我希望tmuxinator 分别发送每一行。

【问题讨论】:

  • @ramirio 谢谢你的链接。将其作为答案发布,例如,一个句子长的文章,我会接受它。
  • 完成了,我希望他们尽快合并这个 PR :D

标签: tmux tmuxinator


【解决方案1】:

目前在 tmuxinator 存储库中有一个用于这些功能的 pull request
您可以在本地获取拉取请求(可能使用git-extras)和build the gem,而他们不合并它。

他们合并了 PR 和这个功能 is in the new release

【讨论】:

    猜你喜欢
    • 2012-02-02
    • 1970-01-01
    • 1970-01-01
    • 2013-02-05
    • 1970-01-01
    • 2011-12-18
    • 2011-10-05
    • 2021-12-12
    • 1970-01-01
    相关资源
    最近更新 更多