-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
52 lines (41 loc) · 1.58 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# change default prefix key
set-option -g prefix C-x
unbind-key C-b
bind-key C-x send-prefix
# start windows numbering from 1
set -g base-index 1
# the same with panes
set-window-option -g pane-base-index 1
# history limit
set -g history-limit 1000
# use a 256 colour terminal
set -g default-terminal "screen-256color"
# status line
set -g status-bg red
set -g status-fg white
# status line: highlight active window
set-window-option -g window-status-current-style fg=red,bg=white
# Rather than constraining window size to the maximum size of
# any client connected to the *session*, constrain window size
# to the maximum size of any
# client connected to *that window*.
# Much more reasonable.
setw -g aggressive-resize on
# vim keys in copy or choice mode
set-window-option -g mode-keys vi
# vim like keys for text selection (copy/choice mode)
bind-key -T copy-mode-vi v send-keys -X begin-selection # begin visual mode
bind-key -T copy-mode-vi V send-keys -X select-line # visual line
bind-key -T copy-mode-vi y send-keys -X copy-selection # yank
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle # visual block toggle
# vim like keys for pane traversal (prefix w)
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# make using ctrl-arrows to jump by word possible again
set-window-option -g xterm-keys on
# copy or choice mode (using defaults, just for reference)
# bind-key [ copy-mode # enter copy mode; default [
# bind-key -t vi-copy Escape cancel # exit copy mode; or hit q
# bind-key ] paste-buffer # paste; default ]