I'm trying to send an environment prior to starting zsh.
I have 4 virtual envs that I need to source into the current session to set the environment (python virtualenv / nodeenv).
This works from the command line, but not from the python api:
I added the following to ~/.zshrc...
```
if [[ -n "$ZVENV" ]]; then
source "$ZVENV"
fi
```
...and start the command (from the command line) as such:
```
ZVENV=/Users/jon/work/project1/nenv/bin/activate /bin/zsh
```
When I send that as a command to iterm2, the session drops immediately. I can't read the output on the session because I suppressed the dialog and couldn't read under it anyways.
```
command_to_run = "ZVENV=/Users/jon/work/project1/nenv/bin/activate /bin/zsh"
window = await iterm2.Window.async_create(connection, command=command_to_run)
```
How do I set an environment variable prior to running the command?
Alternatively, is there a way to "send text" to the default profile when I create the tab - there is this option in profile setup to "Send text at start:" and that would work if I wanted to manage a ton of profiles, which I don't.
Thanks