-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
56 lines (43 loc) · 1.95 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
set -g default-terminal "screen-256color"
set-option -g mouse on
set-window-option -g mode-keys vi
unbind C-s
unbind C-b
set -g prefix C-s
bind C-a send-prefix
#change scrollback limit
set-option -g history-limit 10000
# List of plugins
#set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-yank'
# option for better mouse plugin
set -g @scroll-speed-num-lines-per-scroll 5
set -g @scroll-without-changing-pane on
set -g @emulate-scroll-for-no-mouse-alternate-buffer on
set-option -g set-clipboard off
# Key bindings
bind-key -T copy-mode C-w send-keys -X copy-selection
bind-key -T copy-mode M-w send-keys -X copy-selection
bind-key -T copy-mode-vi C-j send-keys -X copy-selection
bind-key -T copy-mode-vi Enter send-keys -X copy-selection
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard' \; send -X clear-selection
bind -T copy-mode-vi Escape send-keys -X clear-selection
bind -T copy-mode-vi r send-keys -X rectangle-toggle
bind -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe 'xclip -in -selection clipboard' \; send -X clear-selection
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe 'xclip -in -selection clipboard' \; send -X clear-selection
#bind -T copy Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'