From a4fe0498598c8946b4c3de11145e404729d508b3 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 4 Apr 2024 21:08:47 +0100 Subject: [PATCH] Enable set-clipboard when in an SSH session --- tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmux.conf b/tmux.conf index b4db00d..864dff9 100644 --- a/tmux.conf +++ b/tmux.conf @@ -123,6 +123,10 @@ bind -n WheelDownPane \ \"select-pane -t= ; \ send-keys -M\" " +# Enable setting clipboard with OSC-52 when in an SSH session +if -b '[ "$SSH_TTY" != "" ]' \ + 'set-option -g set-clipboard on' + # Yank to the system clipboard in copy mode. # TODO: reattach-to-user-namespace not necessary with tmux > 2.6 if -b '[ "`uname`" = "Darwin" ]' \