diff --git a/.tmux.conf b/.tmux.conf index f0492ce..ed1d37b 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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'