★ wanayoo — archive 1999 https://github.com/tmux-python/tmuxp/issues/573Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple configs in single file #573

Open
rightaway opened this issue Apr 27, 2020 · 4 comments
Open

Multiple configs in single file #573

rightaway opened this issue Apr 27, 2020 · 4 comments

Comments

@rightaway
Copy link

@rightaway rightaway commented Apr 27, 2020

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.

@rightaway
Copy link
Author

@rightaway rightaway commented Apr 27, 2020

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

@lifeBalance
Copy link

@lifeBalance lifeBalance commented Apr 30, 2020

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
Copy link
Author

@rightaway rightaway commented Apr 30, 2020

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
Copy link

@lifeBalance lifeBalance commented Apr 30, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.