jump to content
Snippets and tips
  1. Home
  2. Holiday
  3. Posts
  4. Tools
  5. Tags
  6. Categories

Tmux

Configuration for the screen multiplexer

Configuration for TMUX that makes it easier.

Tmux is a better replacement for screen.

Configuration #

The file .tmux.conf is the default configuration file.

1
2
3
4
5
6
7
8
set -g mouse on
set -g display-time 3000
display "hello world"
set -g set-titles on
set-option -g status-style bg=cyan
set -g set-titles-string "#W #T"
set -g status-right-length 80
set -g status-right "#T %H:%M"

The first line allows one to quickly shift to other sessions using the mouse. Line 7 and 8 show a bit more content as is necessary when one runs emerge in a tmux session.

Automatic setup of multiple sessions #

Tmux can be scripted to start several sessions. This comes in handy, when one runs complex tests where clients/simulators are interactive command line programs.