File tree 1 file changed +42
-0
lines changed
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ set -g base-index 1
2
+ set -s escape-time 0
3
+ set -g mouse on
4
+
5
+ set-option -g default-shell /bin/zsh
6
+
7
+ set-option -g prefix C-a
8
+ unbind-key C-b
9
+ bind-key C-a send-prefix
10
+
11
+ bind r source-file ~ /.tmux.conf
12
+
13
+ setw -g mode-keys vi
14
+
15
+ bind Escape copy-mode
16
+
17
+ bind-key -T copy-mode v send -X begin-selection
18
+ bind-key -T copy-mode y send -X copy-selection
19
+ bind-key -T copy-mode y send -X copy-pipe " xclip -sel clip -i"
20
+
21
+ unbind p
22
+ bind p paste-buffer # remap paste
23
+
24
+ bind C-S-c run " tmux save-buffer - | xclip -i -sel clipboard"
25
+ bind C-v run " tmux set-buffer \" $( xclip -o -sel clipboard) \" ; tmux paste-buffer"
26
+
27
+ # split panes using | and -
28
+ bind | split-window -h
29
+ bind - split-window -v
30
+ unbind ' "'
31
+ unbind %
32
+
33
+ # switch panes using Alt-arrow without prefix
34
+ bind -n M-Left select-pane -L
35
+ bind -n M-Right select-pane -R
36
+ bind -n M-Up select-pane -U
37
+ bind -n M-Down select-pane -D
38
+
39
+ # Enable mouse control (clickable windows, panes, resizable panes)
40
+ # set -g mouse-select-window on
41
+ # set -g mouse-select-pane on
42
+ # set -g mouse-resize-pane on
You can’t perform that action at this time.
0 commit comments