Created
June 13, 2017 20:57
-
-
Save csmosx/d03846ca0189226454e187eb6a10cb68 to your computer and use it in GitHub Desktop.
bash dotenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# dotenv - run a program in an environment with added vars parsed from a .env file | |
env $(if [ -f .env ]; then cat .env | grep -v ^# | xargs; fi) $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment