1 # Tmux configuration file.
6 # Use a larger window history, in lines.
7 set-option -g history-limit 10000
9 # Display messages for three seconds.
10 set-option -g display-time 3000
15 # Disable alternative screen feature. This way e.g. Vim's window content stays
16 # visible after quitting Vim. This is quite useful to copy data (needs tmux
17 # 1.5 to work completely).
18 set-window-option -g alternate-screen off
20 # Set title for outer terminal.
21 set-option -g set-titles on
23 # Don't rename windows to the currently running program, my zshrc does this
24 # for me (with some additional features).
25 set-window-option -g automatic-rename off
31 set-option -g status-fg white
32 # Bright blue background color (colour12).
33 set-option -g status-bg colour12
35 # Nothing left of window list.
36 set-option -g status-left ""
37 # Current load average and hostname on the right.
38 set-option -g status-right "#(uptime | cut -d: -f5- | tr -d ,) #H"
40 # Format for windows in the window list in the status line. #I window index,
41 # #W window number, #F window flags.
42 set-window-option -g window-status-format "#I #W#F"
43 set-window-option -g window-status-current-format "#I #W#F"
48 # Use Vi(m) key bindings.
49 set-option -g status-keys vi
50 set-window-option -g mode-keys vi
52 # Use Ctrl-A as escape binding, like in GNU screen.
53 set-option -g prefix C-a
54 # Ctrl-A a sends Ctrl-A to the process, like in GNU screen.
55 bind-key a send-prefix
58 # GNU screen like bindings (with C-x).
59 bind-key C-c new-window
60 bind-key C-a last-window
61 bind-key C-n next-window
62 bind-key C-p previous-window
63 bind-key C-[ copy-mode
64 bind-key C-] paste-buffer
66 # Arrow-key replacements for tmux's prompt.
67 bind-key -t vi-edit C-n history-down
68 bind-key -t vi-edit C-p history-up