record-shell: Add spoopy stdin recording with "-i"
🎃🕷🕸 Happy Halloween!! 👻🍬🍫
This commit is contained in:
parent
750a2cfaf2
commit
bd3ddab28f
1 changed files with 7 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue