Advanced paste buffer usage

We just covered paste buffers in the last chapter, but there is more than we were able to cover there. So let's cover some of the more advanced usage first while it's fresh in our memory. We'll touch on the following advanced paste buffer topics:

  • Saving a paste buffer to a file
  • Loading a paste buffer from a file
  • Setting a paste buffer directly
  • Capturing pane contents to a paste buffer
  • Deleting copied text from a paste buffer
  • Clearing the paste buffer history

Saving a paste buffer to a file

Assume you've just copied a lot of excellent text to the paste buffer and now you want to save it to a file.

Of course, you could open a text editor, paste the contents of the buffer, and save a new file; however, tmux provides us with a handy ...

Get Getting Started with tmux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.