Skip to content

Instantly share code, notes, and snippets.

@odinsy
Forked from lopesivan/record.md
Created February 22, 2024 11:48
Show Gist options
  • Save odinsy/828358ae6e07ff352cab13d48481ec2b to your computer and use it in GitHub Desktop.
Save odinsy/828358ae6e07ff352cab13d48481ec2b 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