Use direnv on files with other names
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?
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.