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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.