⌨️env Setting
Also known as "env" key, settings env
The key that sets shell values for all your chats.
Think of it like
It is like packing the same snacks in every lunch box. Each one gets them.
Example
Emma's team works behind a proxy. They put HTTPS_PROXY under env in the repo file, and each teammate's session uses it.
Why it matters
It is the way to set a variable once instead of in every shell.
Definition
Example code
json
{
"env": {
"DISABLE_AUTO_COMPACT": "1",
"HTTPS_PROXY": "http://proxy.example.com:8080"
}
}Common mistake
Key takeaways
- 1Variables for sessions. And their programs.
- 2Names to strings. An object.
- 3Share with a team. In a repo file.