]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - tmux.conf
tmux.conf: Add format for windows in window list.
[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
10 # TERMINAL
11
12 # Disable alternative screen feature. This way e.g. Vim's window content stays
13 # visible after quitting Vim. This is quite useful to copy data (needs tmux
14 # 1.5 to work completely).
15 set-window-option -g alternate-screen off
16
17 # Set title for outer terminal.
18 set-option -g set-titles on
19
20 # Don't rename windows to the currently running program, my zshrc does this
21 # for me (with some additional features).
22 set-window-option -g automatic-rename off
23
24
25 # STATUS LINE
26
27 # White text.
28 set-option -g status-fg white
29 # Bright blue background color (colour12).
30 set-option -g status-bg colour12
31
32 # Nothing left of window list.
33 set-option -g status-left ""
34 # Current load average and hostname on the right.
35 set-option -g status-right "#(uptime | cut -d: -f5- | tr -d ,) #H"
36
37 # Format for windows in the window list in the status line. #I window index,
38 # #W window number, #F window flags.
39 set-window-option -g window-status-format         "#I #W#F"
40 set-window-option -g window-status-current-format "#I #W#F"
41
42
43 # BINDINGS
44
45 # Use Vi(m) key bindings.
46 set-option        -g status-keys vi
47 set-window-option -g mode-keys vi
48
49 # Use Ctrl-A as escape binding, like in GNU screen.
50 set-option -g prefix C-a
51 # Ctrl-A a sends Ctrl-A to the process, like in GNU screen.
52 bind-key a send-prefix
53 unbind-key C-b
54
55 # GNU screen like bindings (with C-x).
56 bind-key C-c new-window
57 bind-key C-a last-window
58 bind-key C-n next-window
59 bind-key C-p previous-window
60 bind-key C-[ copy-mode
61 bind-key C-] paste-buffer
62
63 # vim: ft=tmux