1 # Tmux configuration file.
3 # Copyright (C) 2011-2012 Simon Ruderich
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this file. If not, see <http://www.gnu.org/licenses/>.
21 # Use a larger window history, in lines.
22 set-option -g history-limit 10000
24 # Display messages for three seconds.
25 set-option -g display-time 3000
30 # Disable alternative screen feature. This way e.g. Vim's window content stays
31 # visible after quitting Vim. This is quite useful to copy data (needs tmux
32 # 1.5 to work (almost) completely).
33 set-window-option -g alternate-screen off
35 # Set title for outer terminal.
36 set-option -g set-titles on
38 # Don't rename windows to the currently running program, my zshrc does this
39 # for me (with some additional features).
40 set-window-option -g automatic-rename off
46 set-option -g status-fg white
47 # Bright blue background color (colour12).
48 set-option -g status-bg colour12
50 # Nothing left of window list.
51 set-option -g status-left ""
52 # Current load average and hostname on the right.
53 set-option -g status-right "#(uptime | cut -d: -f5- | tr -d ,) #H"
55 # Format for windows in the window list in the status line. #I window index,
56 # #W window number, #F window flags.
57 set-window-option -g window-status-format "#I #W#F"
58 set-window-option -g window-status-current-format "#I #W#F"
63 # Use Vi(m) key bindings.
64 set-option -g status-keys vi
65 set-window-option -g mode-keys vi
67 # Use Ctrl-A as escape binding, like in GNU screen.
68 set-option -g prefix C-a
69 # Ctrl-A a sends Ctrl-A to the process, like in GNU screen.
70 bind-key a send-prefix
73 # GNU screen like bindings (with C-x).
74 bind-key C-c new-window
75 bind-key C-a last-window
76 bind-key C-n next-window
77 bind-key C-p previous-window
78 bind-key C-[ copy-mode
79 bind-key C-] paste-buffer
81 # Arrow-key replacements for tmux's prompt.
82 bind-key -t vi-edit C-n history-down
83 bind-key -t vi-edit C-p history-up