Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set environment vars from a file
# Ignores commented out lines and handles spaces
# https://stackoverflow.com/questions/19331497/set-environment-variables-from-file-of-key-pair-values
export $(grep -v '^#' .env | xargs -d '\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment