Skip to content

Commit 14ee07f

Browse files
arthurnnclaude
andcommitted
tmux: enable OSC52 clipboard support for mosh
Configures tmux to pass through OSC52 clipboard sequences for mosh/ssh connections. Mosh 1.4.0+ supports OSC52 but requires the c; option that tmux doesn't send by default. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 78a2bbd commit 14ee07f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tmux.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ set -g default-shell /usr/bin/zsh
22

33
setw -g mouse on
44

5+
# Enable OSC52 clipboard support for mosh/ssh
6+
set -g set-clipboard on
7+
set -ag terminal-overrides "vte*:XT:Ms=\\E]52;c;%p2%s\\7,xterm*:XT:Ms=\\E]52;c;%p2%s\\7"
8+
59
# emacs friendly keybindings
610
set -g mode-keys emacs
711
#set -g prefix C-x

0 commit comments

Comments
 (0)