Skip to content

Recording tmux session

Marcel Partap edited this page May 15, 2020 · 9 revisions

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 --command "tmux attach [-t session-name]" tmux-$(date +%F--%H%M).cast
  • when you're finished, just detach the session again