5

I'm new to tmuxinator, so forgive me if this is a naive question.

I have a tmuxinator config file (say, my_config.yaml,) stored in a source tree of a shared project.

For others to use it, AFAICT they first have to make a soft-link from the config file to inside thier home directory, then launch tmuxinator separately:

$ ln -rs my_config.yaml ~/.tmuxinator/
$ tmuxinator my_config

This is inconvenient, and also requires that all your config files have unique filenames, lest they collide in ~/.tmuxinator/.

I'd much rather just be able to do something like:

$ tmuxinator my_config.yaml

Is there a way to pass the config file to tmuxinator on the command line?

SuperElectric
  • 17,548
  • 10
  • 52
  • 69

1 Answers1

6

Is there a way to pass the config file to tmuxinator on the command line?

Not currently. Feel free to open a feature request/issue on GitHub.

Tmuxinator does, however, support project level config files. If you move my_config.yml to /project/root/.tmuxinator, you can then start it (from the project root) via tmuxinator start . or tmuxinator local.

UPDATE:

As I added below in the comments, this is now possible using the -p flag:

tmuxinator start -p /path/to/my_config.yml

pdoherty926
  • 9,895
  • 4
  • 37
  • 68
  • Good to know; thanks. I've filed a feature request: https://github.com/tmuxinator/tmuxinator/issues/595 – SuperElectric Mar 05 '18 at 13:20
  • 2
    For anyone stumbling upon this in the future: as of v0.11.0, tmuxinator now supports OP's desired use case and a project config file can be passed to tmuxinator via: `tmuxinator start -p /path/to/my_config.yml` – pdoherty926 Mar 31 '18 at 19:11
  • 1
    @pdoherty926 please add this to your answer: tmuxinator start -p /path/to/my_config.yml – Rubber Duck Jun 08 '20 at 12:50
  • 2
    There is a typo in Rubber Duck's comment: there is no need to add `` when using the `-p` flag. – llinfeng Jan 27 '22 at 01:48