Skip to content

Instantly share code, notes, and snippets.

View syukronrm's full-sized avatar

Syukron Rifa'il Muttaqi syukronrm

View GitHub Profile
@syukronrm
syukronrm / README.md
Created August 10, 2022 05:32 — forked from nikoheikkila/README.md
Fish Shell function for sourcing standard .env files

envsource

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:

.env (line 2): Unsupported use of '='. In fish, please use 'set KEY value'.
from sourcing file .env
source: Error while reading file '.env'