niieani / bash-oo-framework

Bash Infinity is a modern standard library / framework / boilerplate for Bash
https://github.com/niieani/bash-oo-framework/discussions
MIT License
5.57k stars 247 forks source link

feat(dotenv): autoload .env files #78

Open pateketrueke opened 5 years ago

pateketrueke commented 5 years ago

Automatically load .env files from the current working directory:

import util/dotenv

It can be called to load additional files, e.g.

dotenv /path/to/private/.env