]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .tmux.conf
.tmux.conf: default-term 'screen-256color'
[dotfiles.git] / .tmux.conf
1 # -------------------------------------------------------------------
2 # Settings
3 # -------------------------------------------------------------------
4 set -g history-limit 15000 # increase scrollback lines
5 set -g default-command 'bash' # no login shell
6 set -g renumber-windows on # renumber windows sequentially after closing any of them
7 setw -g monitor-activity on # monitor for activity in windows
8 set -g visual-activity on # display status line message for windows with activity (monitor-activity)
9 set -g aggressive-resize on # smart window resizing when multiple attached clients
10 set -sg escape-time 50 # shorter Esc/Alt disambiguation timeout
11 set -sg default-term 'screen-256color'
12
13 # -------------------------------------------------------------------
14 # Look and Feel
15 # -------------------------------------------------------------------
16 # update program titlebar caption
17 set -g set-titles on
18 set -g set-titles-string '[#S:#I.#P #H] #W'
19
20 # status bar
21 set -g status-style none
22 set -g status-left ''
23 set -g status-right '#[fg=blue]#(whoami)@#h (#S:#I.#P)'
24 setw -g window-status-style 'fg=brightblack'
25 setw -g window-status-current-style 'bg=brightblack,bold,fg=brightwhite'
26
27 # pane borders
28 set -g pane-active-border-style 'fg=green'
29 set -g pane-border-style 'fg=black'
30
31 # -------------------------------------------------------------------
32 # Key Bindings
33 # -------------------------------------------------------------------
34 # act like GNU screen
35 unbind C-b
36 set -g prefix C-a
37 bind-key a send-prefix
38 bind-key A command-prompt "rename-window %%"
39 bind-key C-a last-window
40 bind-key C new-window
41 bind-key c new-window -n 'sh' # new window w/ default title
42 bind-key C-c new-window -n 'sh' # (same as C-a c)
43 bind-key C-d detach # (same as C-a d)
44 bind-key C-n next-window # (same as C-a n)
45 bind-key C-p previous-window # (same as C-a p)
46 bind-key Escape copy-mode
47 unbind-key Space
48
49 # vim style movement
50 setw -g mode-keys vi
51 bind-key h select-pane -L
52 bind-key j select-pane -D
53 bind-key k select-pane -U
54 bind-key l select-pane -R
55 bind-key J swap-pane -D
56 bind-key K swap-pane -U
57
58 # vim style window splitting
59 bind-key 's' split-window -v
60 bind-key 'v' split-window -h
61
62 # Shift+0-9 to select screens 10-19
63 bind-key ')' select-window -t :10
64 bind-key '!' select-window -t :11
65 bind-key '@' select-window -t :12
66 bind-key '#' select-window -t :13
67 bind-key '$' select-window -t :14
68 bind-key '%' select-window -t :15
69 bind-key '^' select-window -t :16
70 bind-key '&' select-window -t :17
71 bind-key '*' select-window -t :18
72 bind-key '(' select-window -t :19
73
74 bind-key R source-file ~/.tmux.conf
75 bind-key C-o select-pane -t :.+ # (same as C-a o)
76 bind-key m setw monitor-activity # toggle monitor-activity