Using tmux Configuration Files for Setup
The .tmux.conf file itself can execute commands that set up a default environment. If you wanted every tmux session to start in the same default folder or automatically open a split window, you could bake that right into your default configuration by adding the appropriate commands to the end of your configuration file.
But you can also specify a configuration file when you start up an instance of tmux by using the -f flag. This way, you don’t have to change your original default configuration file, and you can check your configuration file in with your project’s source code. You can also set up your own per-project configuration options, such as new keyboard shortcuts to run commands or start your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access