Skip to content

Instantly share code, notes, and snippets.

@konverner
Last active January 5, 2026 10:04
Show Gist options
  • Select an option

  • Save konverner/150716f164d8af2ec2bc88a7a66a189c to your computer and use it in GitHub Desktop.

Select an option

Save konverner/150716f164d8af2ec2bc88a7a66a189c to your computer and use it in GitHub Desktop.
One-liner that loads values from .env for environment variables
export $(sed -e 's/#.*//g' -e '/^$/d' .env | xargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment