Skip to content

Use project config file with specific name in specific directory #533

Description

@danshumaker

In the same directory, I'd love to be able to do

mux s myproject_log_tailing
mux s myproject_nodejs_monitor

I'd also love to be able to share the "myproject_log_tailing.yml" file with colleagues. However since the tmuxinator requirement is that if the project files do NOT live in the ~/.tmuxinator directory then they have to be named ./.tmuxinator.yml , then that therefore means that you can have only ONE tmuxinator config file per directory per project.

Therefore my request is that tmuxinator be able to handle project config files in the current non-home directory that are named things other than .tmuxinator.yml.

So tmuxinator would do a bootstrap something like

If project configuration file specified on the command line is not an absolute path then {
   if project configuration specified is not in the current directory then {
      if project configuration file specified is not in the ~/.tmuxinator directory then {
         fail
     } else {
         start tmuxinator with ~/.tmuxinator/project_name.yml
   } else {
     start tmuxinator with ./project_name.yml
} else {
   start tmuxinator with "tmux -f $absolute_path_to_project_file"
 }

That way when I share tmuxinator project config files with colleagues they can use them as is, and don't have to put them in their ~/.tmuxinator directory or rename them .tmuxinator.yml.

Perhaps tmuxinator already does this in some way, I just havn't figured out the syntax to do it. Is it already possible??

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions