Skip to content

Instantly share code, notes, and snippets.

View antonengelhardt's full-sized avatar

Anton Engelhardt antonengelhardt

View GitHub Profile
@nikoheikkila
nikoheikkila / README.md
Last active September 1, 2024 08:55
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: