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.

3
  • github.com/tmuxinator/tmuxinator/pull/482 Commented Nov 15, 2016 at 20:12
  • @ramirio thank you for the link. Post it as an answer with, like, a sentence-long writeup and I'll accept it. Commented Nov 15, 2016 at 20:52
  • 1
    done, i hope they merge this PR as soon as possible :D Commented Nov 15, 2016 at 23:14

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.