Created
August 16, 2012 23:02
-
-
Save elcuervo/3374362 to your computer and use it in GitHub Desktop.
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
# Autoload .env files | |
load_env_file() { | |
if [ -f ".env" ]; then export $(grep -v '#' .env); fi; | |
} | |
# Load for .env files when changing dir | |
chpwd() { load_env_file } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment