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