1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-27 15:37:29 +03:00
wezterm/wt-replay
Wez Furlong de8c2f17d8 Add some helper scripts for diagnostic purposes
The idea is that these will help folks convey the nature of problems
that they might hit in the future.
2018-02-25 08:01:32 -08:00

17 lines
327 B
Bash
Executable File

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