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, we’ll show you a few ways to make tmux and your system work well together.

Using a Different Shell

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

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

 
set​ -g default-command /bin/zsh
 
set​ -g default-shell /bin/zsh

Since tmux is just a Terminal multiplexer and not a shell of its own, we can just specify exactly what to run.

Launching tmux by Default

We can configure our system to launch tmux automatically when we open a Terminal. Using what we know about ...

Get tmux 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.