Files
oam/knowledge base/export all variables in a envfile.md
2023-07-09 18:00:36 +02:00

26 lines
473 B
Markdown

# Export all variables in an envfile
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Sources](#sources)
## TL;DR
```sh
set -o allexport
source envfile
set +o allexport
```
## Sources
- [Set environment variables from file of key/value pairs]
<!--
References
-->
<!-- Others -->
[set environment variables from file of key/value pairs]: https://stackoverflow.com/questions/19331497/set-environment-variables-from-file-of-key-value-pairs#30969768