mirror of
1
0
Fork 0

Source all files under `~/.tmux.d/` directory.

This change will source all configuration files under `~/.tmux.d/`
directory, so that user could have many independent configs. Also this
should elimenate merge problem when configs from main repository
updates.
This commit is contained in:
Grigory Chernyshev 2018-09-30 16:03:09 +02:00
parent ffb1c54769
commit 1bdd11818d
2 changed files with 5 additions and 1 deletions

View File

@ -162,6 +162,7 @@ bind P choose-buffer # choose which buffer to paste from
# -- user defined overrides ----------------------------------------------------
if '[ -f ~/.tmux.conf.local ]' 'source ~/.tmux.conf.local'
if '[ -d ~/.tmux.d ]' 'source ~/.tmux.d/*.conf'
# -- 8< ------------------------------------------------------------------------

View File

@ -188,7 +188,10 @@ Configuration
While this configuration tries to bring sane default settings, you may want to
customize it further to your needs. Instead of altering the `~/.tmux.conf` file
and diverging from upstream, the proper way is to edit the `~/.tmux.conf.local`
file.
file. Additionally, you can create `~/.tmux.d/` directory and create as many
configuration files as you need. This could be useful if you version control
your settings and need different options on different machines/environments.
Good example could be using vcsh/mr.
Please refer to the default `~/.tmux.conf.local` file to know more about
variables you can adjust to alter different behaviors. Pressing `<prefix> e`