tmux and Your Operating System

As tmux becomes part of your workflow, you may want to integrate it more tightly with your operating system. In this section, you’ll discover ways to make tmux and your system work well together.

Using a Different Shell

In this book, we’ve used the Bash shell, but if you’re a fan of zsh, you can still get all the tmux goodness.

Just explicitly set the default shell in .tmux.conf like this:

 set -g default-shell /bin/zsh

Since tmux is just a terminal multiplexer and not a shell of its own, you just specify exactly what to run when it starts.

Launching tmux by Default

You can configure your system to launch tmux automatically when you open a terminal. And using what you know about session names, you can create ...

Get tmux 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.