From 9f4e40b540fc9ed87023f0899007ca146862f77a Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 12 Jun 2020 08:49:20 -0700 Subject: [PATCH] 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. --- .github/ISSUE_TEMPLATE/bug_report.md | 6 ++++-- wt-record | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f2384d09d..ba8df3d88 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -40,8 +40,10 @@ appropriate for rendering issues. ## Session Recording If the issue is with the way that escape sequences are processed it can be helpful -to capture the terminal output using the `wt-record` script to run `wezterm` and -record a transcript. This requires the `script` utility to be installed on your system. +to capture the terminal output using the [`wt-record`](https://github.com/wez/wezterm/blob/master/wt-record) +script to run `wezterm` and record a transcript. This requires the `script` utility +to be installed on your system (this is part of macOS and available in the `util-linux` +package on linux systems). In the example below a file named `20180225161026.tgz` is produced. Please attach that file to this issue, or if it contains private or sensitive issue that you don't want the diff --git a/wt-record b/wt-record index ef290309c..652716c9a 100755 --- a/wt-record +++ b/wt-record @@ -3,15 +3,16 @@ NOW=`date -u +%Y%m%d%H%M%S` echo $NOW +PATH=$PWD/target/release:$PATH case $OSTYPE in darwin*) - ./target/release/wezterm start -- script -r $NOW.typescript + wezterm start -- script -r $NOW.typescript tar -cz -f $NOW.tgz $NOW.typescript ;; linux*) - ./target/release/wezterm start -- script -t$NOW.timing $NOW.typescript + wezterm start -- script -t$NOW.timing $NOW.typescript tar -cz --remove-files -f $NOW.tgz $NOW.timing $NOW.typescript ;; esac