Watch_me

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.

Buy Now

Select a DRM-free Format:

In Stock
In Stock
In Stock
Buy the eBook and get these DRM-free formats delivered immediately:
  • epub (for iPhone/iPad, Android, eReaders)
  • mobi (for Kindle)
  • PDF
We can automatically send them to your Kindle or Dropbox, and for a social reading experience we can link the book to your Readmill account. (You'll need to log in to enable these options.)
 

About this Book

  • 88 pages
  • Published:
  • Release: P2.0 (2013-04-30)
  • 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

Contents and 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

About the Author

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.

Upcoming Author Events

  • 2013-04-27: Brian P. Hogan
    JRuby - Imagine mixing the easy syntax, powerful language features, and rapid development of Ruby with the speed, power, and flexibility of the Java Virtual Machine? Ruby and the JVM go together like chocolate and peanut butter, and you'll see some examp (Twin Cities Code Camp, Minneapolis, MN)
  • 2013-08-13: Brian P. Hogan
    Testing Client Side Code with Jasmine and CoffeeScript With more logic moving from the client-side to the server-side, we've got to get better at testing code. In this talk you'll learn about writing tests for client-side code that help drive the d (ThatConference, Wisconsin Dells, Wisconsin)
  • 2014-04-05: Brian P. Hogan
    Automate with Grunt (Twin Cities Code Camp, Minneapolis, MN)

Comments and Reviews

  • Chicago Ruby Book Reviews said:

    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.

  • 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 users.

    —Luke Chadwick @vertis