diff --git a/.tmux.conf b/.tmux.conf index 76185c8..18a14b9 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -9,9 +9,6 @@ bind-key -n C-a send-prefix set-option -g default-shell /bin/zsh #for copying to sys clipboard -bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" -bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" -bind -T copy-mode-vi C-j send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" bind | split-window -h bind - split-window -v @@ -42,6 +39,12 @@ set -g default-terminal "screen-256color" bind-key -n Home send Escape "OH" bind-key -n End send Escape "OF" +# copying +set -g set-clipboard on +set -g @override_copy_command 'xclip -i -selection clipboard' +set -g @yank_selection 'clipboard' +set -as terminal-features ',*:clipboard' + # Vim style pane selection bind h select-pane -L bind j select-pane -D