-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
44 lines (34 loc) · 1.09 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
set -g default-terminal "screen-256color"
set -g default-command "$(which zsh)"
# Change the prefix from C-b to C-a
set-option -g prefix C-a
# turn on mouse mode
set -g mouse on
# C-a for last active window
bind-key C-a last-window
# Start window numbering at 1
set -g base-index 1
# Set escape time to zero for faster commands
set -s escape-time 0
# Change bindings for window splitting
unbind %
bind \\ split-window -h
bind - split-window -v
# Change vi mode keys
unbind -T copy-mode-vi 'h'
bind-key -T copy-mode-vi 'j' send-keys -X cursor-left
bind-key -T copy-mode-vi 'k' send-keys -X cursor-down
bind-key -T copy-mode-vi 'l' send-keys -X cursor-up
bind-key -T copy-mode-vi ';' send-keys -X cursor-right
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
bind-key -T copy-mode-vi 'V' send-keys -X rectangle-toggle
# Change pane select keys
unbind-key \;
bind-key j select-pane -L
bind-key \; select-pane -R
bind-key k select-pane -D
bind-key l select-pane -U
# change pane resize keys
bind-key K resize-pane -D 5
bind-key L resize-pane -U 5