From bd3ddab28f6a754e7ffc15e88257614aff0892ff Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Sat, 19 Oct 2024 15:21:28 -0500 Subject: [PATCH] record-shell: Add spoopy stdin recording with "-i" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🎃🕷🕸 Happy Halloween!! 👻🍬🍫 --- scripts/record-shell | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/record-shell b/scripts/record-shell index 5608ecf..c993dda 100755 --- a/scripts/record-shell +++ b/scripts/record-shell @@ -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"