tmux.conf

Configuration file for tmux, the BSD terminal multiplexer

$HOME/.tmux.conf

Note: If tmux doesn't seem to be reading your custom config file, make sure there is no running tmux process, then delete the server socket '/tmp/tmux-$(id -u)/default'. Or reload the config from inside tmux.

This problem was observed in tmux 1.5 on openSUSE.

The scrollback doesn't work with every terminal type. You might have to use the terminal-overrides option.

To insert a backtick, use Backtick-a.

See also

Fresh tips imported 2011-11-15 from Wired's site, adapted to my needs

Tmux - ArchWiki

### --- Key bindings
## Use this if you are used to Ctrl-a from screen
# set-option -g prefix C-a
# backtick is a good idea for prefix
set-option -g prefix `
unbind-key C-b
bind-key C-a last-window
bind-key ` last-window
bind-key a send-prefix
# we might need ` at some point, allow switching
# we can also send the prefix char with `-a
bind-key F11 set-option -g prefix C-a
bind-key F12 set-option -g prefix `
# `+r reloads the configuration, handy
bind r source-file ~/.tmux.conf
# 0 is too far from `, start with window number 1
set -g base-index 1
set-option -g bell-action any
set-option -g visual-bell on
### --- Navigation
# Just a few ideas...
# set-option -g mouse-select-pane on
# set-option -g status-keys vi
# setw -g mode-keys vi
# setw -g mode-mouse on
# setw -g monitor-activity on
#
# bind e previous-window
# bind f next-window
# bind j up-pane
# bind k down-pane
### --- Appearance
set-option -g set-titles on
# window number,program name,active (or not)
set-option -g set-titles-string '#H:#S.#I.#P #W #T'
set-option -g status-bg green
set-option -g status-fg blue
# more statusbar examples...
# set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]'
#
# set -g status-right '#[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'
# set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'
set -g history-limit 4096
# scrollback workaround
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# important to have proper TERM instead of 'screen' on AIX
set -g default-terminal xterm