jamesottaway / tmux-up

Bootstrap new `tmux` sessions without complex tools, DSLs, or dependencies
MIT License
113 stars 8 forks source link

Source config files from `./.tmux/` #6

Open jamesottaway opened 9 years ago

jamesottaway commented 9 years ago

For workspaces which need have than one configuration, tmux-up can fall back to searching within the .tmux/ sub-directory if $1 cannot be found in the current working directory.

This would allow, for example, a workspace to maintain separate configurations for independent use cases, such as one for day-to-day development work and a different one for managing deployments.

In this case, if a primary configuration is generally preferred, it can be symlinked into the top-level working directory as .tmux.conf so tmux-up can still be invoked without any parameters.

poxar commented 9 years ago

One could place all the configurations in the top level as hidden files for the same effect. Since the dot gets stripped away anyway, the behaviour should be the same, or am I missing something?

Having a .tmux/ sub-directory makes sense, if you want to avoid file clutter though. But then I'd argue, that we should also try to load the default .tmux.conf from there. For example as .tmux/tmux.conf. I have a branch, that implements this. It's based on #7 though, so I won't open a pull request just yet.