-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
46 lines (36 loc) · 1.88 KB
/
dot_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
43
44
45
#set -g default-command "${SHELL}"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'arcticicestudio/nord-tmux'
set -g @plugin 'christoomey/vim-tmux-navigator'
#set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @yank_action 'copy-pipe-no-clear'
set -g mouse on
set -g mode-keys vi
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"
bind -T copy-mode DoubleClick1Pane select-pane \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i"
bind -T copy-mode-vi DoubleClick1Pane select-pane \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i"
bind -n DoubleClick1Pane select-pane \; copy-mode -M \; send -X select-word \; send -X copy-pipe-no-clear "xsel -i"
bind -T copy-mode TripleClick1Pane select-pane \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i"
bind -T copy-mode-vi TripleClick1Pane select-pane \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i"
bind -n TripleClick1Pane select-pane \; copy-mode -M \; send -X select-line \; send -X copy-pipe-no-clear "xsel -i"
bind -n MouseDown2Pane run "tmux set-buffer -b primary_selection \"$(xsel -o)\"; tmux paste-buffer -b primary_selection; tmux delete-buffer -b primary_selection"
set -g @plugin 'fheinle/tmux-fzf-url'
# Small shortcutes
bind C-s set-window-option synchronize-panes
set -g base-index 1
# New Window
bind -n M-n split-window -t :.0 -c "#{pane_current_path}" \;\
swap-pane -s :.0 -t :.1 \;\
select-layout main-vertical \;\
resize-pane -t :.1 -x 80
# Redraw
bind -n M-r select-layout main-vertical \;\
resize-pane -t :.1 -x 80
# Rotate clockwise
bind -n M-k rotate-window -D \; select-pane -t 0
# Rotate counterclockwise
bind -n M-j rotate-window -U \; select-pane -t 0
run '~/.tmux/plugins/tpm/tpm'