Skip to content

Instantly share code, notes, and snippets.

@espinz
Created August 16, 2019 16:06
Show Gist options
  • Select an option

  • Save espinz/496607b1204ffbc09ec14fd7696c0608 to your computer and use it in GitHub Desktop.

Select an option

Save espinz/496607b1204ffbc09ec14fd7696c0608 to your computer and use it in GitHub Desktop.
Terminal recording

recterm and ttygif

Download, and install, required files via git and homebrew

git clone https://github.com/rascoro1/recterm.git ~/recterm

Install via homebrew

brew install ttyrec ttygif sox ffmpeg
chmod +x ~/recterm/recterm.sh
mkdir gifs
cd gifs

Using recterm

Create a video, with audio, of your terminal commands.

Start recording

~/recterm/recterm.sh myvideo

Stop recording

CTRL-d
# this will create a video called myvideo

Using ttygif

Create a GIF of your terminal commands.

Start recording

ttyrec

Stop recording

CTRL-d
# this will create a binary file called ttyrecord by default.
# ttyrec myBIN; will create a custom file named myBIN

Create the GIF

ttygif ttyrecord -f
# or ttyrec myBIN -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment