-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
43 lines (34 loc) · 936 Bytes
/
.tmux.conf
File metadata and controls
43 lines (34 loc) · 936 Bytes
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
unbind C-b
set -g prefix C-a
bind C-a send-prefix
set -g mouse on
setw -g mode-keys vi
bind r source-file ~/.tmux.conf; display-message "tmux config reloaded"
# selecting panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# syncronize panes
bind f setw synchronize-panes
# easy split
unbind '"'
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# easy toggle panes and windows
unbind enter
unbind space
bind space last-pane
bind enter last-window
# resize panes
bind-key -r J resize-pane -D 3
bind-key -r K resize-pane -U 3
bind-key -r H resize-pane -L 3
bind-key -r L resize-pane -R 3
# clipboard
set -s copy-command 'xclip -selection clipboard'
bind -Tcopy-mode-vi y send -X copy-pipe
# Setup 'v' to begin selection as in Vim
bind -Tcopy-mode-vi v send -X begin-selection
unbind -Tcopy-mode-vi MouseDragEnd1Pane