Book Image

Getting Started with tmux

By : Victor Quinn
Book Image

Getting Started with tmux

By: Victor Quinn

Overview of this book

Table of Contents (16 chapters)
Getting Started with tmux
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Working with the paste buffer


There are also a handful of other useful things we can do when working with the paste buffer.

You can optionally set a limit for the number of items to store in this stack by setting the buffer-limit option to a number in your tmux configuration. This can be useful if you only want, say, the last five items you copied in a paste buffer for security reasons.

You can also list paste buffers non-interactively by pressing <Prefix>, : (list-buffers) and Enter, which will display all the buffers in a list that you can scroll through. Notice how each buffer has an index, which is a number, followed by the size of that buffer. Press q (Esc) to dismiss this list.

This buffer index can be used in a few different operations. It can be used to delete a buffer, to copy a buffer to another session, to load a buffer at a particular index, to set the contents in a particular buffer, to write a buffer to a file, and much more. It is a bit outside the scope of this book to...