>_ IzzyLab

Hands-on task

This task is step 8 of the course “tmux: sessions you never lose”

Configure ~/.tmux.conf

medium~5 min

Configure tmux via the ~/.tmux.conf file: enable mouse support and set it so that window numbering starts at 1 instead of 0. Both settings are global tmux options. The file is handy to create in the Editor tab above the terminal: .tmux.conf lives right in /root.

What you'll practise:
  • tmux
  • ~/.tmux.conf
  • set -g
  • options
  • configuration

Topic breakdown

tmux is configured declaratively via the ~/.tmux.conf file, which is read when the server starts. Behavior is set by options: global ones are set with the set directive and the -g flag in the form set -g <option> <value>. The right option names (enabling the mouse, the starting index of window numbering) are found in the OPTIONS section of man tmux — the concept is to understand that almost any tmux behavior is a named option with a value.

What's checked

  1. mouse enabled
  2. window numbering starts at 1

What it looks like