From 1bdd11818db686f7ee782d288c7a9e622e19268e Mon Sep 17 00:00:00 2001 From: Grigory Chernyshev Date: Sun, 30 Sep 2018 16:03:09 +0200 Subject: [PATCH] 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. --- .tmux.conf | 1 + README.md | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index b650e6f..2ae689a 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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< ------------------------------------------------------------------------ diff --git a/README.md b/README.md index a82ea00..f06dfc9 100644 --- a/README.md +++ b/README.md @@ -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 ` e`