Merge branch 'obsd-master'
[tmux.git] / example_tmux.conf
blob1bd9afdc0aae4ec8f4f822927c5c1128d7941258
2 # Example .tmux.conf
4 # By Nicholas Marriott. Public domain.
7 # Some tweaks to the status line
8 set -g status-right "%H:%M"
9 set -g window-status-current-style "underscore"
11 # If running inside tmux ($TMUX is set), then change the status line to red
12 %if #{TMUX}
13 set -g status-bg red
14 %endif
16 # Enable RGB colour if running in xterm(1)
17 set-option -sa terminal-overrides ",xterm*:Tc"
19 # Change the default $TERM to tmux-256color
20 set -g default-terminal "tmux-256color"
22 # No bells at all
23 set -g bell-action none
25 # Keep windows around after they exit
26 set -g remain-on-exit on
28 # Change the prefix key to C-a
29 set -g prefix C-a
30 unbind C-b
31 bind C-a send-prefix
33 # Turn the mouse on, but without copy mode dragging
34 set -g mouse on
35 unbind -n MouseDrag1Pane
36 unbind -Tcopy-mode MouseDrag1Pane
38 # Some extra key bindings to select higher numbered windows
39 bind F1 selectw -t:10
40 bind F2 selectw -t:11
41 bind F3 selectw -t:12
42 bind F4 selectw -t:13
43 bind F5 selectw -t:14
44 bind F6 selectw -t:15
45 bind F7 selectw -t:16
46 bind F8 selectw -t:17
47 bind F9 selectw -t:18
48 bind F10 selectw -t:19
49 bind F11 selectw -t:20
50 bind F12 selectw -t:21
52 # A key to toggle between smallest and largest sizes if a window is visible in
53 # multiple places
54 bind F set -w window-size
56 # Keys to toggle monitoring activity in a window and the synchronize-panes option
57 bind m set monitor-activity
58 bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
60 # Create a single default session - because a session is created here, tmux
61 # should be started with "tmux attach" rather than "tmux new"
62 new -d -s0 -nirssi 'exec irssi'
63 set -t0:0 monitor-activity on
64 set -t0:0 aggressive-resize on
65 neww -d -ntodo 'exec emacs ~/TODO'
66 setw -t0:1 aggressive-resize on
67 neww -d -nmutt 'exec mutt'
68 setw -t0:2 aggressive-resize on
69 neww -d
70 neww -d
71 neww -d