-
Notifications
You must be signed in to change notification settings - Fork 2
/
.tmux.conf
50 lines (38 loc) · 1.21 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
# Try a prefix on the home row.
set -g prefix M-f
# Lessen the delay between prefix and command to make it more responsive.
set -s escape-time 1
# Number windows starting at 1 rather than 0.
set -g base-index 1
# Number panes starting at 1 rather than 0.
setw -g pane-base-index 1
# Simpler to reload .tmux.conf
bind r source-file ~/.tmux.conf \; display "Tmux configuration reloaded!"
# Splitting panes with | and -
bind s split-window -h
bind v split-window -v
# Moving between panes with Prefix h,j,k,l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Use all the colors
set -g default-terminal "screen-256color"
# Center the window list in the status line
set -g status-justify centre
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# Use vi keystrokes for copy mode
setw -g mode-keys vi
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-selection
unbind p
bind p paste-buffer
# Copy to the system clipboard too
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"