Skip to content

Instantly share code, notes, and snippets.

@iamjjanga-ouo
Forked from worldofprasanna/terminal-capture.md
Last active July 16, 2024 13:51
Show Gist options
  • Save iamjjanga-ouo/bdb4f437d8174984201848b051b64cea to your computer and use it in GitHub Desktop.
Save iamjjanga-ouo/bdb4f437d8174984201848b051b64cea to your computer and use it in GitHub Desktop.
[linux/tool/tmux]

Commands Reference

  1. Start a new tmux named session tmux new -s terminal-capture
  2. Split the screen using these commands,
  • vertical split <C-b>"
  • horizontal split <C-b>%
  1. To navigate between the panes,
  • To goto Left pane <C-b> left-key
  • To goto Right pane <C-b> right-key
  • To goto Top pane <C-b> up-key
  • To goto Down pane <C-b> down-key
  1. Detach the session tmux <C-b>+d
  2. Record the tmux session with asciinema asciinema rec -c "tmux attach -t terminal-capture"
  3. Detach the tmux session, save the recording and convert it into gif
  4. Enjoy !!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment