From 06b99c4f4ffa2d00b4182c693af0b747255af4af Mon Sep 17 00:00:00 2001 From: goodhumored Date: Tue, 30 Jul 2024 17:52:20 +0300 Subject: [PATCH] fixed copying --- .tmux.conf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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