The Tmux Cookbook
$8.99
Minimum price
$12.99
Suggested price

The Tmux Cookbook

A Full Course Guide

About the Book

Why learn Tmux?

Do you ever feel overwhelmed by the number of terminal windows? Do you want to control multiple processes from one window? Do you want to join the ranks of the command-line pros? Are you single and want to impress someone with your command-line prowess? 72% of girls prefer men who know how to use Tmux (source: I made it up).

Learning tmux can make your wildest dreams come true.

Who is this book for?

If you've never used Tmux, or if you've been a Tmux user for years, you'll find some delicious bite-sized knowledge.

Structure

This cookbook is a full-course meal and is divided into multiple sections:

  • Appetizers: Basic Tmux components
  • Salad and Soup: Configuring Tmux + TPM (Tmux Plugin Manager)
  • Main Course: Common (and uncommon) Tmux tasks that you can practice immediately. This will give you a jump start to use Tmux like a pro
  • Dessert: Build your own tmux plugin, Integrating Tmux into your AI workflow

About the Author

Igor Irianto
Igor Irianto

Igor is a software developer in Dallas, TX. He works with Ruby on Rails and various Javascript frameworks.

He lives with his awesome wife and an old border collie golden retriever who likes to sleeps all day.

Table of Contents

    • Appetizers
    • Appetizer Ch. 01 - The Tmux Cookbook: A Full Course Guide
      • What is Tmux? Why Tmux?
      • Why do I want to use Tmux?
      • What to Expect From This Guide
      • Environment
    • Appetizer Ch. 02 - Tmux Sessions
      • Creating a New Session
      • Attaching and Detaching a Session
      • Named Sessions
      • Switching Sessions
      • Killing a Session
      • Tmux Sessions Conclusion
    • Appetizer Ch. 03 - Tmux Windows
      • Creating a New Window
      • Switching Windows
      • Renaming Windows
      • Deleting Windows
      • Tmux Windows Conclusion
    • Appetizer Ch. 04 - Tmux Panes
      • Creating a New Pane
      • Deleting a Pane
      • Navigate Between Panes
      • Resize a Pane
      • Zoom a Pane
      • Swapping Panes
      • Tmux Layouts
      • Tmux Panes Conclusion
    • Appetizer - Ch. 05 Tmux Servers
      • Creating a New Server
      • Attaching and Detaching a Server
      • Listing Servers
      • Killing a Server
      • Tmux Servers Conclusion
    • Soup and Salad
    • Salad - Ch. 06 Configs
      • Changing tmux prefix
      • Quick source
      • Debugging
      • Horizontal and Vertical splits
      • Toggle Windows
      • Tmux Commands
      • Commenting
      • More Configs
    • Soup - Ch. 07 TPM (Tmux Plugin Manager)
      • What is TPM and Why Should You Use It?
      • Installing TPM and Other Plugins
    • Main Course
    • Main Course - Ch. 08 Window and Pane Management
      • Recipe 8.1: Create a 4-pane development layout
      • Recipe 8.2: Resize panes with keyboard shortcuts
      • Recipe 8.3: Swap and rotate panes
      • Recipe 8.4: Create a monitoring dashboard with watch commands
      • Recipe 8.5: Save and restore pane layouts
      • Recipe 8.6: Synchronize panes for multi-server commands
    • Main Course Ch. 09 - Session Management
      • Recipe 9.1: Name sessions for easy switching
      • Recipe 9.2: Even easier session switching
      • Recipe 9.3: Create project-specific session templates
      • Recipe 9.4: Automatically start tmux sessions on system boot
      • Recipe 9.5: Share sessions between users safely
      • Recipe 9.6: Clone sessions for sandbox
      • Recipe 9.7: Nest tmux sessions without conflicts
    • Main Course Ch. 10 - Navigation and Productivity
      • Recipe 10.1: Jump between panes like Vim
      • Recipe 10.2: Search through pane history
      • Recipe 10.3: Copy text between panes and to system clipboard
      • Recipe 10.4: Create custom key bindings for repetitive tasks
      • Recipe 10.5: Use fzf for fuzzy session/window switching
      • Recipe 10.6: Mouse support
    • Main Course Ch. 11 - Development Workflows
      • Recipe 11.1: Set up a Rails development environment
      • Recipe 11.2: Create a Node.js debugging layout
      • Recipe 11.3: Monitor logs in dedicated panes
      • Recipe 11.4: Run tests automatically on file changes
      • Recipe 11.5: Create a Git workflow with diff viewers
      • Recipe 11.6: Set up a database client workspace
    • Main Course Ch. 12 - Remote Work and SSH
      • Recipe 12.1: Persistent sessions over unreliable connections
      • Recipe 12.2: Manage multiple SSH connections in one window
      • Recipe 12.3: Forward tmux keybindings through SSH
      • Recipe 12.4: Sync tmux config across multiple servers
      • Recipe 12.5: Handle different tmux versions on different servers
    • Main Course Ch. 13 - Status Bar
      • Recipe 13.1: Display Git branch in status bar
      • Recipe 13.2: Show system metrics (CPU, memory, battery)
      • Recipe 13.3: Add weather information to status bar
      • Recipe 13.4: Create activity notifications
      • Recipe 13.5: Show Pomodoro timer
    • Main Course Ch. 14 - Advanced Scripting
      • Recipe 14.1: Create a smart project launcher
      • Recipe 14.2: Automate daily standup setup
      • Recipe 14.3: Build a deployment monitoring dashboard
      • Recipe 14.4: Generate tmux sessions from YAML files
      • Recipe 14.5: Create hooks for pane creation/destruction
    • Main Course Ch. 15 - Integration Recipes
      • Recipe 15.1: Integrate tmux with vim/neovim
      • Recipe 15.2: Use tmux with VS Code terminal
      • Recipe 15.3: Connect tmux to notification systems
      • Recipe 15.4: Use Tmux with Docker containers
    • Main Course Ch. 16 - Troubleshooting Recipes
      • Recipe 16.1: Fix corrupted sessions
      • Recipe 16.2: Resolve copy-paste issues
      • Recipe 16.3: Debug slow tmux startup
      • Recipe 16.4: Fix color and formatting problems
      • Recipe 16.5: Recover from detached sessions
      • Recipe 16.6: Handle special characters and Unicode
    • Main Course Ch. 17 - Team Collaboration
      • Recipe 17.1: Set up pair programming sessions
      • Recipe 17.2: Create read-only shared sessions
      • Recipe 17.3: Record and replay tmux sessions
      • Recipe 17.4: Create team-wide Tmux conventions
      • Recipe 17.5: Manage permissions in shared sessions
    • Main Course Ch. 18 - Performance and Optimization
      • Recipe 18.1: Optimize Tmux for large scrollback buffers
      • Recipe 18.2: Reduce memory usage in long-running sessions
      • Recipe 18.3: Speed up pane switching
      • Recipe 18.4: Handle hundreds of windows
      • Recipe 18.5: Optimize for slow network connections
      • Recipe 18.6: Profile and debug Tmux performance
    • Main Course Ch. 19 - Portable Tmux
      • Recipe 19.1: Portable Tmux
    • Desserts
    • Dessert Ch. 20 - Building a Tmux Plugin: Step-by-Step Guide
      • Basic TPM Plugin Structure
      • Installing the Plugin
      • Plugin Entry Point: colorful.tmux
      • Main Script: scripts/colorful.sh
      • Utility Functions: scripts/utils.sh
      • Plugin Components Scripts
      • Caching Mechanism
      • Push it and You’re Done!
    • Dessert Ch. 21 - Integrating Tmux Into Your AI Workflow
      • Tmux-mcp
      • Multiple Layouts
      • Creating Multiple Agents
    • Dessert Ch. 22 - Conclusion

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub