diff --git a/record.go b/record.go index 9fcf5c22a..13d440b53 100644 --- a/record.go +++ b/record.go @@ -70,6 +70,8 @@ var EscapeSequences = map[string]string{ func Record(_ *cobra.Command, _ []string) error { command := exec.Command(shell) + command.Env = append(command.Env, "VHS_RECORD=true") + terminal, err := pty.Start(command) if err != nil { return err