1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-26 06:42:12 +03:00
wezterm/wt-record

21 lines
471 B
Plaintext
Raw Normal View History

2019-03-18 09:34:05 +03:00
#!/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
2019-03-18 09:34:05 +03:00
case $OSTYPE in
darwin*)
2021-03-21 06:14:17 +03:00
wezterm start -- script -r $PWD/$NOW.typescript
2019-03-18 09:34:05 +03:00
tar -cz -f $NOW.tgz $NOW.typescript
;;
linux*)
wezterm start -- script -t$NOW.timing $NOW.typescript
2019-03-18 09:34:05 +03:00
tar -cz --remove-files -f $NOW.tgz $NOW.timing $NOW.typescript
;;
esac
echo "Transcript recorded in $NOW.tgz"