labnotes

asciinema for terminal recordings

show don’t tell

tags
asciinema
cli

Ascii Cinema is a tool that helps you record interactions on the terminal and then turn them into little movies that can be embedded on a page. Let's install and run it!

1
2
  brew install asciinema
  brew install agg

Start the recording

1
  asciinema rec demo.cast

Do what you need to do in the terminal, then exit out. You should get

1
2
  asciinema: recording finished
  asciinema: asciicast saved to demo.cast

Make a gif

1
  agg demo.cast demo.gif

or

1
  agg --theme monokai --font-size 20 --speed 2 demo.cast demo.gif

Which will give you something like

Upload to the server

1
  asciinema upload demo.cast

If you go to the url embed url, you will be able to see your cast.

You can also go to the connect url, which will prompt you to create an account with your email address.

Do that and you should be able to see your unlisted upload.

References

Previously

fragments

Tools I like as an amateur

tags

Next

labnotes

have openai help you use the terminal

slipping in some ai everywhere

tags
openai
gem
cli