Skip to content

Instantly share code, notes, and snippets.

@lopesivan
Created September 15, 2017 04:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lopesivan/e5dd413c01e7c0ee492a35a6b7b555a0 to your computer and use it in GitHub Desktop.
Save lopesivan/e5dd413c01e7c0ee492a35a6b7b555a0 to your computer and use it in GitHub Desktop.
Record tmux session

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment