-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
49 lines (40 loc) · 1.1 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
# custom prefix
set -g mouse on
set -g default-terminal "screen-256color"
setw -g mode-keys vi
set -s escape-time 1
setw -g monitor-activity on
set -g visual-activity on
set -g prefix C-a
unbind C-b
bind C-s set-window-option synchronize-panes
# copy mode
bind Escape copy-mode
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
# custom window management
set -g base-index 1
setw -g pane-base-index 1
bind | split-window -h
bind _ split-window -v
bind - split-window -v -c "#{pane_current_path}"
bind '\' split-window -h -c "#{pane_current_path}"
# pane navigation
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# window navigation
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# custom bindings
bind r source-file ~/.tmux.conf\; display "Reloaded!"
bind C-a send-prefix
# # Load mac-specific settings
if-shell "uname | grep -q Darwin" "source-file ~/.tmux.mac.conf"