Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aooohan committed Dec 21, 2023
1 parent 72c064f commit 10e0c5a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions env/macos_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,11 @@ type macosEnvManager struct {
}

func (m *macosEnvManager) ReShell() error {
_ = os.Setenv("DISABLE_RESTORED_SESSION_PROMPT", "1")
// flush env to file
m.Flush()
command := exec.Command(m.shellInfo.ShellPath)
command.Stdin = os.Stdin
command.Stdout = os.Stdout
command.Stderr = os.Stderr
if err := command.Start(); err != nil {
return err
}
if err := command.Wait(); err != nil {
if err := command.Run(); err != nil {
return err
}
return nil
Expand Down

0 comments on commit 10e0c5a

Please sign in to comment.