Skip to content

Instantly share code, notes, and snippets.

@bertomartin
Forked from collinschaafsma/gist:2323523
Created March 21, 2013 14:59
Show Gist options
  • Select an option

  • Save bertomartin/5213703 to your computer and use it in GitHub Desktop.

Select an option

Save bertomartin/5213703 to your computer and use it in GitHub Desktop.
# Put this in ~/.zshrc
chpwd() {
if [ -f ".env" ]; then source .env; fi
}
# Then make .env files in your project directories that look like this.
export S3_SECRET="<s3_secret>"
export S3_KEY="<s3_key>"
# Then add .env to ~/.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment