MacOS has a built-in screen recording feature, simply hit cmd+shift+5 and then select the Record Selected Portion
in the toolbar that pops up.
Once done you’ll have a .mov
file, this can be converted to a .gif
with a simple Terminal command.
First you’ll have to install two tools using Homebrew:
Then you can add the following to your .zshrc
file (I stole the code from a Github issue thread):
And finally by opening a terminal in the same folder as your .mov
file you can run:
And this gives you a quick two step process to creating a gif: