terminal: Fix Alacritty TERM handling
setup_env modifies the current process's environment, which we are ignoring in favour of the env variable. Instead, we copy over the relevant variables from the current environment after modification so that we don't have to re-implement the logic.
Closes #17991
Release Notes:
- N/A
We require contributors to sign our Contributor License Agreement, and we don't have @liam-fitzgerald on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.
@cla-bot check
The cla-bot has been summoned, and re-checked this pull request!
A bit surprising to see this small thing getting stale, will close this to keep the queue cleaner.