Skip to content

Commit b461e7b

Browse files
authored
fix(record): propagate env of vhs process to record terminal (#572)
1 parent 0dde08b commit b461e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

record.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var EscapeSequences = map[string]string{
7070
func Record(_ *cobra.Command, _ []string) error {
7171
command := exec.Command(shell)
7272

73-
command.Env = append(command.Env, "VHS_RECORD=true")
73+
command.Env = append(os.Environ(), "VHS_RECORD=true")
7474

7575
terminal, err := pty.Start(command)
7676
if err != nil {

0 commit comments

Comments
 (0)