Skip to content

Multiple configs in single file #573

@rightaway

Description

@rightaway

I'd like to have multiple configs in a single file, rather than having to spread them across multiple files. If a yaml file contains an array of objects, then tmuxp should load whichever of them matches, like tmuxp load first or tmuxp load second.

- session_name: first
  windows: ...
- session_name: second
  windows: ...

The config file can then be a single file under ~/.tmuxp/config.yml.

Activity

rightaway

rightaway commented on Apr 27, 2020

@rightaway
Author

Or even better the config file can just be ~/.tmuxp.yml. Or following the XDG specification it could be be ~/.config/tmuxp.yml.

lifeBalance

lifeBalance commented on Apr 30, 2020

@lifeBalance

You can also have a custom tmuxp config directory by setting the TMUX_CONFIGDIR in your environment variables:

export TMUXP_CONFIGDIR=$HOME/.config/tmuxp
rightaway

rightaway commented on Apr 30, 2020

@rightaway
Author

With a single file there won't even be a need for a directory. Everything can be in a single file ~/.config/tmuxp.yml making configuration tmuxp even easier.

lifeBalance

lifeBalance commented on Apr 30, 2020

@lifeBalance

Don't agree with you about the single file thing; I was just letting you know that if you want to keep your config files in an XDG-compliant directory you totally can.

added
new-featurePossible interesting new feature to be considered for implementation.
on Jan 18, 2021
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

    new-featurePossible interesting new feature to be considered for implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lifeBalance@rightaway@joseph-flinn

        Issue actions

          Multiple configs in single file · Issue #573 · tmux-python/tmuxp