[TMUX] make copy-paste to system available

This commit is contained in:
Gregory Trolliet 2024-03-14 08:40:37 +01:00
parent 76b127f268
commit dffc42cf4a

View file

@ -1,3 +1,8 @@
######################
### PLUGINS ###
######################
#set -g @plugin 'tmux-plugins/tmux-yank'
# set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
@ -53,3 +58,10 @@ setw -g window-status-bell-style 'fg=colour207 bg=colour1 bold'
# messages
set -g message-style 'fg=colour207 bg=colour0 bold'
setw -g mode-keys vi
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'