Skip to content

Instantly share code, notes, and snippets.

View seeruk's full-sized avatar

Elliot Wright seeruk

View GitHub Profile
@seeruk
seeruk / README.md
Created March 21, 2024 14:18 — forked from nikoheikkila/README.md
Fish Shell function for sourcing standard .env files

envsource

⚠️ NOTE (20.5.2023): I don't really use this function at all anymore since there are now tools such as Taskfile, which reads the .env file for me sparing me the need to pollute my session with environment variables.


I've been using Fish shell for years which is great and all, but one thing that has got me frustrated is using it with .env files.

When attempting to run source .env in a project, I usually encounter this problem: