vhs - small utility to record a demo from the terminal
I discovered this while I was working on a new gem: agents_homedir when I discovered this: https://github.com/charmbracelet/vhs
How come I did not know about it? This is amazing for CLI recordings as GIFs.
Here is what I simply did for my gem:
Output agents_homedir-demo.gif Require bundle Set Shell "zsh"
Set Width 2800
Set Height 1700
Set FontSize 32
Set Padding 24
Set TypingSpeed 35ms
Set WindowBar "Colorful" Hide
Type "source /opt/homebrew/opt/chruby/share/chruby/chruby.sh"
Enter
Type "chruby ruby-4.0.1"
Enter
Show Ctrl+L
Sleep 1s Type "irb --simple-prompt --noautocomplete"
Enter
Wait+Line />>/
Sleep 1s Type "require 'agents_homedir'"
Enter
Wait+Line />>/
Sleep 2s Type "AgentsHomedir.installed.map(&:name)"
Enter
Wait+Line />>/
Sleep 2s Type "AgentsHomedir.installed?(:codex)"
Enter
Wait+Line />>/
Sleep 2s Type "AgentsHomedir.home(:codex)"
Enter
Wait+Line />>/
Sleep 2s Type "AgentsHomedir.installed?(:claude_code)"
Enter
Wait+Line />>/
Sleep 2s Type "AgentsHomedir.home(:claude_code)"
Enter
Wait+Line />>/
Sleep 2s
And it created this amazing GIF
. I love this kind of focused utility.