tmux Copy Mode, Scrollback, and Clipboard/Enable clipboard integration

Tell tmux to use the terminal clipboard when supported.

Section: Clipboard workflows

Enable clipboard integration

tmux
tmux
set -g set-clipboard on
Explanation

This can help integrate tmux copying with the system clipboard in supporting terminals.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Clipboard workflows
List paste buffers
Show all saved buffers.
OpenIn sheetbashsame section
Show the current buffer
Print the active buffer contents.
OpenIn sheetbashsame section
Paste the current buffer
Insert copied text into the active pane.
OpenIn sheetbashsame section
Enable vi-style keys in copy mode
Use familiar vi navigation in copy mode.
OpenIn sheettmuxsame section
Write the top buffer to a file
Persist copied text to disk.
OpenIn sheetbash2 tag match
Enter copy mode
Open scrollback for the active pane.
OpenIn sheetbash1 tag match