Skip to content

Commit

Permalink
fix(record): propagate env of vhs process to record terminal (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
tr3mor authored Mar 10, 2025
1 parent 0dde08b commit b461e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion record.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var EscapeSequences = map[string]string{
func Record(_ *cobra.Command, _ []string) error {
command := exec.Command(shell)

command.Env = append(command.Env, "VHS_RECORD=true")
command.Env = append(os.Environ(), "VHS_RECORD=true")

terminal, err := pty.Start(command)
if err != nil {
Expand Down

0 comments on commit b461e7b

Please sign in to comment.