Skip to main content

tmux-yank — Clipboard Integration

Copies text selected in copy mode directly to the system clipboard, bypassing tmux's internal buffer.

Status on This Server

Not installed. Optional plugin.

Installation

~/.tmux.conf
set -g @plugin 'tmux-plugins/tmux-yank'

Then press Ctrl+Space I to install.

Usage

After installing, pressing y in copy mode copies to the system clipboard:

  • Linux: Uses xclip or xsel
  • macOS: Uses pbcopy
  • WSL: Copies to Windows clipboard

Also enables Ctrl+y to paste from system clipboard.

Requirements

  • Linux: xclip or xsel must be installed (sudo apt install xclip)
  • SSH: Only works on the local machine, not over remote SSH sessions (use tmux internal buffer instead)