record-shell: Add spoopy stdin recording with "-i"

🎃🕷🕸 Happy Halloween!! 👻🍬🍫
This commit is contained in:
Andrea Rogers 2024-10-19 15:21:28 -05:00
commit bd3ddab28f

View file

@ -13,11 +13,16 @@ OPTIONS
-h Display this help.
EOUSAGE
while getopts 'h' opt; do
SPOOPY_STDIN=''
while getopts 'hi' opt; do
case "${opt}" in
h)
excat "$usage"
;;
i)
SPOOPY_STDIN='--stdin'
;;
*)
dedcat "$usage"
;;
@ -45,4 +50,4 @@ esac
rec_prefix="$HOME/librecode/sessions/mine/$ID/$SUB_ID"
mkdir -p "$rec_prefix"
asciinema rec "$rec_prefix/$timestamp"
asciinema rec $SPOOPY_STDIN "$rec_prefix/$timestamp"