If you want to record your fancy tmux session with all windows and splits recorded you can do it in the following way:
- setup your tmux session (
tmux new -s session-name
, create windows, splits, start processes in them) - detach (prefix+d)
- run
asciinema rec -c "tmux attach -t session-name"
- when you're finished, just detach the session again