1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-26 23:04:49 +03:00
wezterm/wt-replay

17 lines
327 B
Plaintext
Raw Normal View History

#!/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 ---"