fix(record): propagate env of vhs process to record terminal (#572) · charmbracelet/vhs@b461e7b (original) (raw)
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -70,7 +70,7 @@ var EscapeSequences = map[string]string{ | ||
| 70 | 70 | func Record(_ *cobra.Command, _ []string) error { |
| 71 | 71 | command := exec.Command(shell) |
| 72 | 72 | |
| 73 | -command.Env = append(command.Env, "VHS_RECORD=true") | |
| 73 | +command.Env = append(os.Environ(), "VHS_RECORD=true") | |
| 74 | 74 | |
| 75 | 75 | terminal, err := pty.Start(command) |
| 76 | 76 | if err != nil { |