Loads variables from dotenv (
.env
) files into your environment.
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
source dotenv [environment]
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