Direnv env var additions, overrides, and removals

I use direnv to overlay folder specific configurations in projects when I cd into them.

My default way to set it up is a

.envrc
dotenv
.env
VAR1=hey

Then you run

Terminal window
direnv allow
direnv: loading ~/dev/thought-eddies/src/content/til/direnv/.envrc
direnv: 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.

.envrc
dotenv
unset PAGER
.env
VAR1=hey
EDITOR=code
Terminal window
direnv allow
direnv: loading ~/dev/thought-eddies/src/content/til/direnv/.envrc
direnv: export +VAR1 -PAGER ~EDITOR