Introducing the .tmux.conf File

By default, tmux looks for configuration settings in two places. It first looks in /etc/tmux.conf for a system-wide configuration. It then looks for a file called .tmux.conf in the current user’s home directory. If these files don’t exist, tmux simply uses its default settings. We don’t need to create a system-wide configuration, so let’s create a brand-new configuration file in our home directory. Execute the following command in your shell:

 $ ​​touch​​ ​​~/.tmux.conf

In this file we can do everything from defining new key shortcuts to setting up a default environment with multiple windows, panes, and running programs. Let’s start by setting a couple basic options that will make working with tmux much easier. ...

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.