Browse Source

fix: use xclip for clipboard in tmux

master
Tovi Jaeschke-Rogers 1 week ago
parent
commit
a20d1c68af
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      .tmux.conf

+ 10
- 0
.tmux.conf View File

@ -51,6 +51,16 @@ bind-key -T copy-mode-vi 'y' send -X copy-selection
bind 'V' copy-mode bind 'V' copy-mode
# Enable clipboard integration
set-option -g set-clipboard on
# Use xclip for copying text in copy mode
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -in"
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -in"
# Shortcut for manual copying outside of copy mode
bind-key C-c run-shell "tmux save-buffer - | xclip -selection clipboard -in"
# Enable mouse control (clickable windows, panes, resizable panes) # Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on set -g mouse on


Loading…
Cancel
Save