diff --git a/dot_tmux.conf b/dot_tmux.conf index 089571a..574f87d 100644 --- a/dot_tmux.conf +++ b/dot_tmux.conf @@ -63,14 +63,14 @@ bind -T copy-mode-vi v send -X begin-selection # Clipboard integration: # - Local (macOS): use pbcopy directly for reliable clipboard access -# - Remote (SSH): use OSC 52 escape sequence to copy through terminal +# - Remote (SSH): rely on tmux native OSC 52 via set-clipboard external + terminal-features if-shell '[ -z "$SSH_TTY" ]' \ 'bind -T copy-mode-vi y send -X copy-pipe-and-cancel "pbcopy"; \ bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy"' if-shell '[ -n "$SSH_TTY" ]' \ - 'bind -T copy-mode-vi y send -X copy-pipe-and-cancel "base64 | xargs -I {} printf \"\\033]52;c;%s\\007\" {} > /dev/tty"; \ - bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "base64 | xargs -I {} printf \"\\033]52;c;%s\\007\" {} > /dev/tty"' + 'bind -T copy-mode-vi y send -X copy-selection-and-cancel; \ + bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel' # OSC 52 / passthrough settings (required for nested tmux over SSH) # Local (outer) tmux: set-clipboard on (processes OSC 52 and forwards to terminal)