To build tmux from source, libevent must be installed as well. The tmux configure/build will link against libevent in /usr/local, but will not see it at runtime. Build tmux as a static binary to work around it.

Set bindings to Ctl-A
unbind C-b
set -g prefix C-a
Attach window and detach all others
tmux attach -d
List active sesssions

Also displays which ones are attached:

tmux list-sessions

Source Install

tmux build can't find libevent even with setting prefix:

./configure --prefix=/opt/local CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib

Static build

You can use this script to simplify downloading and installing a tmux build.