I want to have a .env file with a bunch of name-value pairs, like:
VAR1=xxx
VAR2=yyy
# sample C include dir use case
INCLUDE_DIR=/etc/include/xxx
I want these variables to be available in both bash and fish shells, such that I can access them in either shell at any time like echo $VAR1.
~/.env(for example) with the variables in the format above.~/.bash_rc:~/.config/fish/config/fish:This command reads the
.envfile, removes blank lines and comments, and then sets them as environment variables.