Using tmux Configuration for Setup

The .tmux.conf file itself can include 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 in to your default configuration, simply by using the appropriate commands.

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 test suite.

Let’s try this out. Create ...

Get tmux 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.