I use direnv to overlay folder specific configurations in projects when I cd into them. My default way to set it up is a .envrcdotenv .envVAR1=hey Then you run Terminal window❯ direnv allowdirenv: loading ~/dev/thought-eddies/src/content/til/direnv/.envrcdirenv: export +VAR1 I was used to always seeing +s but today I saw ~. I learned ~ is a modification and - is a removal, so with a setup like the following (on my machine), the following file setup elicits all three. .envrcdotenvunset PAGER .envVAR1=heyEDITOR=code Terminal window❯ direnv allowdirenv: loading ~/dev/thought-eddies/src/content/til/direnv/.envrcdirenv: export +VAR1 -PAGER ~EDITOR Thanks for reading via RSS!
No comments yet. Log in to reply on the Fediverse. Comments will appear here.