- Aug
- 197
- 5
I learned a while ago that TCC offers a feature much like the popular
I can illustrate via a sample use case. I work with Terraform IaC to manage resources in multiple AWS accounts, for example, so setting the environment variables required for each different account in
If there isn't any support for that, could you add that as a feature request?
direnv
utility, which can set and unset environment variables when you enter/leave a folder. But I've since learned that it differs significantly in that it doesn't respect that file when in subfolders as direnv
does. So I thought I'd ask: is there any way to configure it to do that?I can illustrate via a sample use case. I work with Terraform IaC to manage resources in multiple AWS accounts, for example, so setting the environment variables required for each different account in
.envtc
files is a great way to make sure I don't shoot myself in the foot working with the wrong environment. But good practices for organizing such code often require things be placed in a number of sub-folders to (as a co-worker puts it) "minimize the blast radius" of the changes I'm making. And whenever I switch to a subfolder, I lose the very environment variables I need defined. That's not how direnv
works on Linux or macOS, so I'm all set there. But it seems like my only option with TCC on Windows is to litter every subfolder with the same configuration file (and make sure if I update one I update them all).If there isn't any support for that, could you add that as a feature request?