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

Customer Reviews

If you want to gain an understanding of tmux in the space of a weekend, Hogan’s tmux book is a great place to start. The book is short, well written, and tailored for developers who want to get things done.

- Chicago Ruby Book Reviews

As a tmux beginner, this book lowered the barrier of entry and made me more
productive. By the time I got to the end of the book I felt like a tmux veteran.

- Jeff Carley

Senior software engineer, Getty Images

Brian’s book serves as an excellent introduction for those among us who’ve heard
about tmux but have never quite been sure where to start. Well written and
straight to the point, it’ll help answer all those basic questions you have about
tmux in an easy to follow format.

- Darcy Laycock

Software engineer, Filter Squad

I’ve often watched over the shoulders of terminal power users with envy. “tmux:
Productive Mouse-Free Development” has put me on the path to being one of those

- Luke Chadwick


See All Reviews

Contents & Extracts

  • Acknowledgments
  • *"Preface*":
  • 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.