gpt4 book ai didi

tmux - 是否可以在 `tmuxinator`的 `pre_window`中指定多个命令?

转载 作者:行者123 更新时间:2023-12-04 08:52:05 26 4
gpt4 key购买 nike

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分别发送每一行。

最佳答案

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

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

关于tmux - 是否可以在 `tmuxinator`的 `pre_window`中指定多个命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27556057/

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