Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 106

How to load a .env file's environment variables into both Bash and Fish shells on startup?

$
0
0

I want to have a .env file with a bunch of name-value pairs, like:

VAR1=xxxVAR2=yyy# sample C include dir use caseINCLUDE_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.


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>