tmux: better user@host:session scheme
[grml-etc-core.git] / etc / tmux.conf
1 # Filename:      /etc/tmux
2 # Purpose:       configuration file for tmux
3 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika at grml.org>,
4 #                Sebastian Boehm <sebastian at sometimesfood.org>
5 #                Bernhard Tittelbach <xro at realraum.at>
6 # Bug-Reports:   see http://grml.org/bugs/
7 # License:       This file is licensed under the GPL v2.
8 ################################################################################
9
10 # screen-like keybindings
11 unbind C-b
12 set -g prefix C-a
13 bind-key a send-prefix
14 bind-key C-a last-window
15 unbind space
16 bind-key space next-window
17 bind-key C-space next-window
18 bind-key K confirm-before kill-window
19 #bind-key C-h previous-window
20
21 #rebind keys
22 bind-key h next-layout
23 bind-key ^? previous-window
24 bind-key ^H previous-window
25 bind-key tab select-pane -t :.+
26 # useful custom keybindings
27 bind-key | command-prompt -p "exec:" "split-window -h '%%'"
28 bind-key - command-prompt -p "exec:" "split-window -v '%%'"
29
30 # misc options
31 set -s escape-time 0
32 set -g default-terminal "screen-256color"
33 set -g display-panes-time 3000
34 set -g mouse-select-pane off
35 set -g visual-activity on
36
37 #set status line appearance
38 set -g status-utf8 on
39 set -g status-fg white
40 set -g status-bg black
41 set -g status-left-length 25
42 set -g status-right-length 6
43 ### status-left:  username@hostname:sessionname
44 #set -g status-left "#[fg=blue]#(echo ${USER})#[fg=white]@#h#[fg=red]:#S#[fg=white] |"
45 ### status-left:  @hostname:sessionname
46 set -g status-left "#[fg=white]@#h#[fg=red]:#S#[fg=white] |"
47 set -g status-right "#[fg=yellow]%H:%M"
48 set-window-option -g window-status-fg blue
49 set-window-option -g window-status-bg black
50 set-window-option -g window-status-current-attr bold
51