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

Handy configuration tips


What follows are a handful of configuration tips we have picked up throughout the years that are a bit useful and not necessarily obvious even after understanding the mechanics of how to configure tmux. These tips include the following:

  • Binding the double tapping of the prefix key to last-window

  • Changing the escape time

  • Lengthening the history limit

  • Lengthening the display time

  • Starting the base index at 1

Binding the double tapping of the prefix key to last-window

This is one of our favorite tricks. More often than not, once you switch to a window and see some information, you want to switch back to the one you came from.

As the title here implies, this can be made very easy by creating a key binding for the prefix key that performs the last-window command. This way you can double tap the prefix key to jump back and forth between two windows. Once as the prefix and once to run the last-window command.

To do this, simply add a bind-key entry to your .tmux.conf file and bind...