1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-28 07:55:03 +03:00
wezterm/wt-record
Wez Furlong 9f4e40b540 make it a bit easier to consume wt-record
Since most users are unlikely to have built from source, adjust
the script so that it will find their installed wezterm.

Adjust the issue template to reference the wt-record script.
2020-06-12 08:51:15 -07:00

21 lines
466 B
Bash
Executable File

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