Is it possible to specify multiple commands in `tmuxinator`'s `pre_window`?
Asked Answered
E

1

9

In tmuxinator config files, you can specify that multiple commands should be run in a single shell, e.g.:

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

Can you do the same with pre_window? The following things have not worked:

1.

pre_window:
  - cmd1
  - cmd2

2.

pre_window: [ cmd1,
  cmd ]

3.

pre_window:
  - a: cmd1
  - b: cmd2

I may be missing something fairly simple; I don't know YAML very well or understand tmuxinator's implementation much.

I already know about (and am currently using)

pre_window: cmd1 && cmd2

What I'd like is for tmuxinator to send each line separately.

Elapse answered 18/12, 2014 at 21:30 Comment(3)
github.com/tmuxinator/tmuxinator/pull/482Virtu
@ramirio thank you for the link. Post it as an answer with, like, a sentence-long writeup and I'll accept it.Elapse
done, i hope they merge this PR as soon as possible :DVirtu
V
2

Currently there is a pull request for these feature in the tmuxinator repository.
You can fetch the pull request locally (maybe using git-extras) and build the gem while they don't merge it.

They merged the PR and this feature is in the new release.

Virtu answered 15/11, 2016 at 23:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.