asciinema [as-kee-nuh-muh] is a free and open source solution for recording terminal sessions and sharing them on the web.
https://asciinema.org/
brew install asciinema