forked from necrolyte2/myhome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
36 lines (29 loc) · 1.73 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
# remap prefix key
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Split panes using | and -
bind | split-window -h -c '#{pane_current_path}' #Split vertical and cd same dir
bind - split-window -v -c '#{pane_current_path}' #Split horizontal and cd same dir
unbind '"'
unbind %
# Reload config file
bind r source-file ~/.tmux.conf
# Switch panes
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
# Resize panes
bind -n S-Right resize-pane -R 10
bind -n S-Left resize-pane -L 10
bind -n S-Down resize-pane -D 10
bind -n S-Up resize-pane -U 10
# Set vim mode for scroll-back history
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# Set history limit
set-option -g history-limit 99999
# Map synchronize panes
bind s setw synchronize-panes