Enable set-clipboard when in an SSH session

This commit is contained in:
Kenneth Benzie 2024-04-04 21:08:47 +01:00
parent 97a94ec036
commit a4fe049859

View File

@ -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" ]' \