-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmate.conf
51 lines (38 loc) · 1.29 KB
/
tmate.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
50
51
#set -g @plugin 'tmux-plugins/tpm'
#set -g @plugin 'tmux-plugins/tmux-yank'
#set -g @plugin 'sainnhe/tmux-fzf'
#set -g @plugin 'egel/tmux-gruvbox'
#set -g @tmux-gruvbox 'dark' # or 'light'
# Ctrl-c should yank to system clipboard
bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
set-option -g prefix `
# Free the original Ctrl-b prefix keybinding
unbind C-b
# Set delay to avoid interference with Vim etc.
set -s escape-time 1
# send prefix command to other apps
# e.g. pass through tmux to vim
# to do this press the PREFIX twice
bind ` send-prefix
# Set the pane index to be 1 not 0
set -g base-index 1
# Add binding to reload .tmux.config
# bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Split screen bindings
bind | split-window -h -p 50
bind - split-window -v -p 50
# Add Vim bindings for moving between panes
bind 'h' select-pane -L
bind 'j' select-pane -D
bind 'k' select-pane -U
bind 'l' select-pane -R
bind 'H' resize-pane -L 5
bind 'J' resize-pane -D 3
bind 'K' resize-pane -U 3
bind 'L' resize-pane -R 5
# move current window left and right in the tab list, respectively.
bind '<' swap-window -t -1
bind '>' swap-window -t +1
set-option -g history-limit 300000
#run '~/.tmux/plugins/tpm/tpm'