Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.19 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.19 KB

dotenv.sh

lint

Loads variables from dotenv (.env) files into your environment.

Install

Clone the repository then run the install script to create the symlink in ~/bin/dotenv:

git clone https://github.com/jonlabelle/dotenv-sh.git
cd dotenv-sh
bash scripts/install.sh

Usage

source dotenv [environment]

Examples

To load variables in the .env file from current working directory:

source dotenv

To load variables in the .env.local file from current working directory:

source dotenv local

References

License

MIT