Skip to content

Instantly share code, notes, and snippets.

@ksoda
Last active August 25, 2019 12:09
Show Gist options
  • Save ksoda/b7fd9830d197274e7ddd2b3f2114c65f to your computer and use it in GitHub Desktop.
Save ksoda/b7fd9830d197274e7ddd2b3f2114c65f to your computer and use it in GitHub Desktop.
Record terminal
#!/bin/bash -eu
# Dependencies:
# npm install -g svg-term-cli
# pip3 install asciinema
cast_filename=$(mktemp -u)
asciinema rec ${cast_filename}
out_filename=$(mktemp -u)
svg-term --in ${cast_filename} --out ${out_filename}.svg
echo "saved to ${out_filename}.svg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment