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"