Skip to content

Instantly share code, notes, and snippets.

@miguelzetina
Created December 14, 2019 01:17
Show Gist options
  • Save miguelzetina/62a32cfbfbafa1ac219cd8c7c0e32446 to your computer and use it in GitHub Desktop.
Save miguelzetina/62a32cfbfbafa1ac219cd8c7c0e32446 to your computer and use it in GitHub Desktop.
Set environment variables from file

-o allexport enables all following variable definitions to be exported. +o allexport disables this feature.

set -o allexport
source conf-file
set +o allexport```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment