-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
30 lines (23 loc) · 996 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
# vi key binding in copy mode
setw -g mode-keys vi
# List of plugins
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tpm'
# Configure Solarized
# set -g @colors-solarized 'light'
set -g @colors-solarized 'dark'
# Configure TrueColor
set -ga terminal-overrides ',xterm-256color:Tc'
# Need this for vim-tmux-clipboard to work
set -g focus-events on
# Tmux should copy to clipboard in copy mode
bind-key -n -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -i -sel p -f | xclip -i -sel c'
bind-key -n -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe 'xclip -i -sel p -f | xclip -i -sel c'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'