Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split tmux.conf into multiple files?

Tags:

tmux

I have a file of common tmux settings I share between computers (tmux.conf.common). I'd like to be able to source this file in my tmux.conf. A way to accomplish this in bash is to have the each computer's .bashrc source the common file. Is there a way to do something analogous in tmux?

like image 539
Andrew Avatar asked Mar 30 '17 00:03

Andrew


1 Answers

The .tmux.conf format has the source-file directive which can be used the same way. Using source also works.

source-file /path/to/tmux.conf.common
like image 186
merlin2011 Avatar answered Oct 14 '22 21:10

merlin2011