Introducing the .tmux.conf File
By default, tmux looks for configuration settings in a few places. It first looks in /etc/tmux.conf for a system-wide configuration. It then looks in the user’s home directory for the file .config/tmux/tmux.conf. tmux also looks in $XDG_CONFIG_HOME/tmux/, which is usually $HOME/.config/tmux, but is user-configurable. It finally looks for a file called .tmux.conf in the current user’s home directory. If none of these files exist, tmux uses its default settings.
You don’t need to create a system-wide configuration, so you’ll create a configuration file in your home directory. Execute the following command in your shell to create the file .tmux.conf in your home directory:
| | $ touch ~/.tmux.conf |
In this ...
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