mirror of
https://github.com/wez/wezterm.git
synced 2024-11-24 07:46:59 +03:00
20 lines
469 B
Bash
Executable File
20 lines
469 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
|
|
|
|
case $OSTYPE in
|
|
darwin*)
|
|
./target/release/wezterm start -- script -r $NOW.typescript
|
|
tar -cz -f $NOW.tgz $NOW.typescript
|
|
;;
|
|
|
|
linux*)
|
|
./target/release/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"
|