Tmux: Add .tmux configuration directory

Created on 13 May 2016  路  5Comments  路  Source: tmux/tmux

Please add .tmux directory to look for configuration file. The order would be:
1) /etc.tmux.conf
2) ~/.tmux.conf
3) ~/.tmux/tmux.conf

Most helpful comment

Not only, why, but if such a change is warranted why not follow the XDG standard and use _~/.config/tmux/tmux.conf_?

All 5 comments

Why?

Not only, why, but if such a change is warranted why not follow the XDG standard and use _~/.config/tmux/tmux.conf_?

It would be very useful. ~/.tmux directory can contain not only one configuration file, but also several additional files to source from .tmux.conf and/or plugins directory, etc.
Of course, you can create own .tmux direcotory (in any place) and use ~/.tmux.conf, but possibility store it in one place is just more holistic approach, IMHO.

I don't think this is a good idea. There is no consensus on what a directory should be called, and you can already do this by creating a .tmux.conf with source '.tmux.d/file1', source '.tmux.d/file2' and so on.

A more useful feature would be to make source-file (and perhaps also -f) able to load multiple files given by a glob(3) pattern.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ovid picture Ovid  路  4Comments

bk2204 picture bk2204  路  4Comments

wellle picture wellle  路  3Comments

dragonxlwang picture dragonxlwang  路  5Comments

alexpearce picture alexpearce  路  5Comments