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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With