.envrc allows direnv to manage environment variables on a per-folder level, which is useful for managing environment variables across different repos (or different clones of the same repo).
For example, I can stick:
export GOPATH="/Users/beaushinkle/go"
in my .envrc (or whatever other environment variables specific to keep) in their relevant folders and it won't clutter my bash profile.
.envrc allows direnv to manage environment variables on a per-folder level, which is useful for managing environment variables across different repos (or different clones of the same repo).
For example, I can stick:
in my
.envrc
(or whatever other environment variables specific to keep) in their relevant folders and it won't clutter my bash profile.