1
0
Fork 0
mirror of synced 2024-06-16 11:21:09 -04:00

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 ---------------------------------------------------- # -- user defined overrides ----------------------------------------------------
if '[ -f ~/.tmux.conf.local ]' 'source ~/.tmux.conf.local' if '[ -f ~/.tmux.conf.local ]' 'source ~/.tmux.conf.local'
if '[ -d ~/.tmux.d ]' 'source ~/.tmux.d/*.conf'
# -- 8< ------------------------------------------------------------------------ # -- 8< ------------------------------------------------------------------------

View file

@ -188,7 +188,10 @@ Configuration
While this configuration tries to bring sane default settings, you may want to 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 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` 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 Please refer to the default `~/.tmux.conf.local` file to know more about
variables you can adjust to alter different behaviors. Pressing `<prefix> e` variables you can adjust to alter different behaviors. Pressing `<prefix> e`