Is there a way to run all commands in current directory with some ENV variables predefined?
Example of what I need:
I put some file, say .env
in my directory, with:
export SECRET='abcd123'
Then I run some command, say rails c
, but in fact it should run as SECRET='abcd123' rails c
. Of course, when I run command from another directory, this ENV variable should not be used.