Can I specify multiple commands in `tmuxinator`` pre_window`?

In the tmuxinator configuration files, you can specify that several commands should be executed in the same shell, for example:

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

Can you do the same with pre_window ? The following things did not work:

one.

 pre_window: - cmd1 - cmd2 

2.

 pre_window: [ cmd1, cmd ] 

3.

 pre_window: - a: cmd1 - b: cmd2 

Perhaps I missed something rather simple; I don't know YAML very well or understand a lot of tmuxinator implementation.

I already know (and am currently using)

 pre_window: cmd1 && cmd2 

I would like tmuxinator send each line separately.

+8
tmux tmuxinator
source share
1 answer

There is currently a pull request for this function in the tmuxinator repository.
You can get the transfer request locally (possibly using git-extras ) and build the gem until they merge it.

They combined PR, and this feature is in the new version .

+1
source share

All Articles