Skip to content

fix(tmux): use set-clipboard external for nested SSH sessions - #58

Merged
paveg merged 1 commit into
mainfrom
fix/tmux-osc52-nested-ssh
Jan 9, 2026
Merged

paveg merged 1 commit into
mainfrom
fix/tmux-osc52-nested-ssh

Conversation

@paveg

@paveg paveg commented Jan 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Change OSC 52 clipboard setting from on to external to forward escape sequences to outer terminal
  • Fixes copy mode not working in Mac(tmux) → Step → EC2(tmux) multi-hop SSH configurations

Test plan

  • Apply config on local Mac: chezmoi apply && tmux source-file ~/.tmux.conf
  • Apply config on EC2: chezmoi apply && tmux source-file ~/.tmux.conf
  • Test copy in nested tmux: select text in EC2 tmux, press y, then Cmd+V on Mac
  • Verify local tmux copy still works

🤖 Generated with Claude Code

Change OSC 52 clipboard setting from 'on' to 'external' to forward
escape sequences to outer terminal. Fixes copy mode not working
in Mac(tmux) -> Step -> EC2(tmux) multi-hop SSH configurations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@paveg
paveg merged commit 6e702df into main Jan 9, 2026
8 checks passed
@paveg
paveg deleted the fix/tmux-osc52-nested-ssh branch January 9, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant