delete old record/replay scripts
This commit is contained in:
1 parent
0a3998887f
commit
6471dcbc8a
2 files changed
-43
No files matched your search
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Runs wezterm using `script` to record a session with timing information
|
||||
|
||||
NOW=`date -u +%Y%m%d%H%M%S`
|
||||
echo $NOW
|
||||
PATH=$PWD/target/release:$PATH
|
||||
|
||||
case $OSTYPE in
|
||||
darwin*)
|
||||
wezterm start -- script -r $PWD/$NOW.typescript
|
||||
tar -cz -f $NOW.tgz $NOW.typescript
|
||||
;;
|
||||
|
||||
linux*)
|
||||
wezterm start -- script -t$NOW.timing $NOW.typescript
|
||||
tar -cz --remove-files -f $NOW.tgz $NOW.timing $NOW.typescript
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Transcript recorded in $NOW.tgz"
|
||||
@@ -1,23 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Replays a recorded session
|
||||
TRANSCRIPT="$1"
|
||||
|
||||
if test -z "$TRANSCRIPT" -o ! -f "$TRANSCRIPT" ; then
|
||||
echo "usage: wt-replay TRANSCRIPT.tgz"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
WHERE=`mktemp -d`
|
||||
tar xzf "$TRANSCRIPT" -C $WHERE
|
||||
|
||||
echo "--- Starting replay ---"
|
||||
case $OSTYPE in
|
||||
darwin*)
|
||||
script -p $WHERE/*.typescript
|
||||
;;
|
||||
linux*)
|
||||
scriptreplay $WHERE/*.timing $WHERE/*.typescript
|
||||
;;
|
||||
esac
|
||||
echo "--- replay complete ---"
|
||||
|
||||
Reference in new issue
Block a user