Add proper copy/paste to tmux

This commit is contained in:
2024-05-03 16:29:43 +01:00
parent 6fa6d5f969
commit 2bf5ea07d0

View File

@@ -67,10 +67,10 @@ set-window-option -g automatic-rename
# Vi copypaste mode # Vi copypaste mode
set-window-option -g mode-keys vi set-window-option -g mode-keys vi
bind-key -n g copy-mode bind g copy-mode
bind -T copy-mode-vi v send -X begin-selection bind -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-selection-and-cancel bind-key -T copy-mode-vi y send -X copy-selection-and-cancel
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel bind P paste-buffer
# highlight color # highlight color
set -g mode-style "fg=black,bg=color167" set -g mode-style "fg=black,bg=color167"