]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - tmux.conf
fbecbad79932c6f0c5a8cdf50bcfbf972aebf19f
[config/dotfiles.git] / tmux.conf
1 # Tmux configuration file.
2
3
4 # GENERAL
5
6 # Use a larger window history, in lines.
7 set-option -g history-limit 10000
8
9 # Display messages for three seconds.
10 set-option -g display-time 3000
11
12
13 # TERMINAL
14
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
19
20 # Set title for outer terminal.
21 set-option -g set-titles on
22
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
26
27
28 # STATUS LINE
29
30 # White text.
31 set-option -g status-fg white
32 # Bright blue background color (colour12).
33 set-option -g status-bg colour12
34
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"
39
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"
44
45
46 # BINDINGS
47
48 # Use Vi(m) key bindings.
49 set-option        -g status-keys vi
50 set-window-option -g mode-keys vi
51
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
56 unbind-key C-b
57
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
65
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
69
70 # vim: ft=tmux