-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
42 lines (31 loc) · 1004 Bytes
/
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
set -g base-index 1
set -s escape-time 0
set -g mouse on
set-option -g default-shell /bin/zsh
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
bind r source-file ~/.tmux.conf
setw -g mode-keys vi
bind Escape copy-mode
bind-key -T copy-mode v send -X begin-selection
bind-key -T copy-mode y send -X copy-selection
bind-key -T copy-mode y send -X copy-pipe "xclip -sel clip -i"
unbind p
bind p paste-buffer # remap paste
bind C-S-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Enable mouse control (clickable windows, panes, resizable panes)
#set -g mouse-select-window on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on