Installing tmux

You can install tmux in one of two ways: using a package manager for your operating system, or building tmux from source.

Whichever method you choose, you’ll want to ensure you install tmux version 2.2 or higher. Earlier versions of tmux don’t support some of the features we’re going to cover in this book, or have configuration that’s incompatible.

Installing on a Mac

The easiest way to install tmux on the Mac is with Homebrew.[2]

First, install Xcode through the Mac App Store. Once Xcode is installed, open a new terminal and run the command

 $ ​​xcode-select​​ ​​--install

to install the command-line tools that Homebrew needs.

Next, install Homebrew by following the instructions on the Homebrew website.

Finally, ...

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.