changelog shortlog graph tags branches changeset files file revisions raw help

Mercurial > infra / annotate scripts/tscript.sh

changeset 371: 7dcabf3e0edc
parent: b3b93a87e570
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 24 Sep 2024 15:53:24 -0400
permissions: -rwxr-xr-x
description: no link in bootstrap.sh
150
b3b93a87e570 added script scripts
Richard Westhaver <ellis@rwest.io>
parents:
diff changeset
1
 #!/bin/sh
b3b93a87e570 added script scripts
Richard Westhaver <ellis@rwest.io>
parents:
diff changeset
2
 # make typescript of terminal session. this will generate two files:
b3b93a87e570 added script scripts
Richard Westhaver <ellis@rwest.io>
parents:
diff changeset
3
 # the raw terminal data and a timing log file. 
b3b93a87e570 added script scripts
Richard Westhaver <ellis@rwest.io>
parents:
diff changeset
4
 set -e
b3b93a87e570 added script scripts
Richard Westhaver <ellis@rwest.io>
parents:
diff changeset
5
 name="${1:-ts-$(date +%s)}"
b3b93a87e570 added script scripts
Richard Westhaver <ellis@rwest.io>
parents:
diff changeset
6
 log="${2:-$name.log}"
b3b93a87e570 added script scripts
Richard Westhaver <ellis@rwest.io>
parents:
diff changeset
7
 script --t="$log" -q "$name" ${3:+-c $3}
b3b93a87e570 added script scripts
Richard Westhaver <ellis@rwest.io>
parents:
diff changeset
8