small medium large xlarge

tmux: Productive Mouse-Free Development


Cover image for tmux


Productive Mouse-Free Development


Your mouse is slowing you down. The time you spend context switching between your editor and your consoles eats away at your productivity. Take control of your environment with tmux, a terminal multiplexer that you can tailor to your workflow. Learn how to customize, script, and leverage tmux’s unique abilities and keep your fingers on your keyboard’s home row.

The new edition is coming soon! tmux 2

About this Title

Pages: 88
Published: 2012-02-29
Release: P3.0 (2014-04-17)
ISBN: 978-1-93435-696-8

It’s pretty common for a modern developer to have a database console, web server, and a text editor running at the same time. Switching between these with the mouse takes up valuable time and can break your concentration. By using tmux, you can improve your productivity and regain your focus. This book will show you how.

You’ll learn how to manage multiple terminal sessions within tmux using only your keyboard. You’ll see how to manage and run programs side-by-side in panes, and you’ll learn how to create the perfect development environment with custom scripts so that when you’re ready to work, your programs are waiting for you. Then you’ll discover how to manipulate text with tmux’s copy and paste buffers. Once you’ve got the basics down, you’ll discover how easy it is to use tmux to collaborate remotely with others. Finally, you’ll explore more advanced usage as you manage multiple tmux sessions, add custom scripts into the tmux status line, and integrate tmux with your system.

Whether you’re an application developer or a system administrator, you’ll find many useful tricks and techniques to help you take control of your terminal.

What You Need:

You’ll need a Mac or Linux machine and some experience using shell commands.

Why Use tmux?

Buy the tmux book now

Read the reviews .

Contents & Extracts

  • Acknowledgments
  • Learning The Basics
    • Installing tmux
    • Starting tmux
    • Detaching and Attaching Sessions excerpt
    • Working with Windows
    • Working with Panes
    • Working with Command Mode
    • What’s Next?
  • Configuring tmux
    • Introducing the .tmux.conf File
    • Customizing Keys, Commands, and User Input
    • Visual Styling
    • Customizing the Status Bar excerpt
    • What’s Next?
  • Scripting Customized tmux Environments
    • Creating a Custom Setup with tmux Commands
    • Using tmux Configuration for Setup
    • Managing Configuration with tmuxinator
    • What’s Next?
  • Working With Text and Buffers
    • Scrolling Through Output with Copy Mode
    • Copying and Pasting Text
    • Working with the Clipboard on Linux
    • Using OS X Clipboard Commands
    • What’s Next?
  • Pair Programming with tmux
    • Pairing with a Shared Account
    • Using a Shared Account and Grouped Sessions
    • Pairing with Separate Accounts and Sockets
    • What’s Next?
  • Workflows
    • Working Effectively with Panes and Windows
    • Managing Sessions
    • tmux and Your Operating System
    • What’s Next?
  • Our Configuration


Brian P. Hogan is an author, editor, trainer, and web developer who’s been building web sites professionally since 1995 as a freelancer and consultant. His recent books include HTML5 and CSS3 and Web Development Recipes. He enjoys teaching and writing about technology, particularly web design, accessibility, and development. When not hacking on Ruby or JavaScript code, he’s writing songs, watching “The Simpsons,” and spending quality time with his wife and daughters.