Skip to content

Commit

Permalink
updated ttygif.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Nov 14, 2024
1 parent 95557e7 commit fe0155d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/ttygif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Creates a Gif from running terminal commands using ttyrec and ttygif
and then opens the resulting gif
If on Mac uses your browser since Mac Preview shows the gif frames instead of the running gif
Requires ttygif to be installed, attempts to install it via your package manager if not found in \$PATH
"

# used by usage() in lib/utils.sh
Expand All @@ -39,6 +42,10 @@ num_args 0 "$@"

ttyrec_recording_file="/tmp/ttyrec.$$"

if ! type -P ttygif &>/dev/null; then
"$srcdir/../packages/install_packages.sh" ttygif
fi

resize -s 25 80

clear
Expand Down

0 comments on commit fe0155d

Please sign in to comment.