]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - tmux.conf
*: License under GPL v3+.
[config/dotfiles.git] / tmux.conf
1 # Tmux configuration file.
2
3 # Copyright (C) 2011-2012  Simon Ruderich
4 #
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.
9 #
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.
14 #
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/>.
17
18
19 # GENERAL
20
21 # Use a larger window history, in lines.
22 set-option -g history-limit 10000
23
24 # Display messages for three seconds.
25 set-option -g display-time 3000
26
27
28 # TERMINAL
29
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 completely).
33 set-window-option -g alternate-screen off
34
35 # Set title for outer terminal.
36 set-option -g set-titles on
37
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
41
42
43 # STATUS LINE
44
45 # White text.
46 set-option -g status-fg white
47 # Bright blue background color (colour12).
48 set-option -g status-bg colour12
49
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"
54
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"
59
60
61 # BINDINGS
62
63 # Use Vi(m) key bindings.
64 set-option        -g status-keys vi
65 set-window-option -g mode-keys vi
66
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
71 unbind-key C-b
72
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
80
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
84
85 # vim: ft=tmux