orbstack / orbstack

Fast, light, simple Docker containers & Linux machines for macOS
https://orbstack.dev
MIT License
4.48k stars 31 forks source link

`mac` command use wrong environment variables #1173

Open Chovid99 opened 3 weeks ago

Chovid99 commented 3 weeks ago

Describe the bug

Hi, so I noticed that when I use mac printenv command inside my linux machine during opening multiple tabs in wezterm terminal, I noticed that the mac printenv always print the environment of the first tab instead of the active tab where I type mac command.

Is there any workaround regarding this? Thanks!

To Reproduce

Open two tabs of wezterm terminal, then call mac printenv inside the second tab. The environment printed will be the env of the first tab, not the active tab.

Expected behavior

It should use the current active tab environment.

Diagnostic report (REQUIRED)

No response

Screenshots and additional context (optional)

No response

kdrag0n commented 5 days ago

Which environment variables are you looking at specifically?