-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
54 lines (44 loc) · 1.11 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
unbind C-b
set -g prefix C-Space
bind-key C-Space last-window
set -g base-index 1
#################
# Mouse control #
#################
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# Use m and M to toggle mouse mode on and off respectively
unbind m
unbind M
bind-key m \
set -w mouse on \;\
display 'Mouse mode on'
bind-key M \
set -w mouse off \;\
display 'Mouse mode off'
# Vim-like key bindings for pane navigation (default uses cursor keys).
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l # normally used for last-window
bind l select-pane -R
# Resizing (mouse also works).
unbind Left
bind -r Left resize-pane -L 5
unbind Right
bind -r Right resize-pane -R 5
unbind Down
bind -r Down resize-pane -D 5
unbind Up
bind -r Up resize-pane -U 5
# Intuitive window-splitting keys.
bind \\ split-window -h
bind - split-window -v
# Start window and pane numbering at 1, (0 is too hard to reach).
set -g base-index 1
set -g pane-base-index 1
set -g history-limit 20000
bind-key n split-window -h "vi ~/notes/"