Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 897
Jim Witschey Avatar asked Dec 18 '14 21:12

Jim Witschey


1 Answers

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.

like image 161
brrystrw Avatar answered Oct 17 '22 22:10

brrystrw