mirror of
https://github.com/wez/wezterm.git
synced 2024-12-18 02:42:05 +03:00
17 lines
327 B
Plaintext
17 lines
327 B
Plaintext
|
#!/bin/sh
|
||
|
# 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 ---"
|
||
|
scriptreplay $WHERE/*.timing $WHERE/*.typescript
|
||
|
echo "--- replay complete ---"
|
||
|
|