direnv icon indicating copy to clipboard operation
direnv copied to clipboard

Use direnv on files with other names

Open karlb opened this issue 2 years ago • 1 comments

As a fish shell user, I can't just source files with environment variables that are written for bash. Direnv solves this nicely for .envrc and .envrc files, but I don't see a way to read files with other names as easily. Therefore I would like to have something like direnv source common-env-setup.sh that executes the file in bash and passes the environment variables to my shell.

Does this make sense? Am I missing a way to do this easily?

karlb avatar Oct 18 '23 10:10 karlb

This sounds like my issue as well.

Nix projects have taken over the .envrc, and I hate them for it. I am constantly finding projects using nix with a .envrc committed to the repository and it sucks. Nix developers took what was sacred and stomped all over it.

tristan957 avatar Dec 12 '23 06:12 tristan957