osenv/README.md

512 B

osenv

Apply .env files to shell environments!

What is it

Given a .env like this:

DB_USER=admin
DB_PASSWORD=changeme

it will generate scripts for bash (and likely other *sh) and powershell, like:

Powershell

Example output:

$env:DB_USER = "admin"; $env:DB_PASSWORD = "changeme"

Use osenv like this:

osenv -s ps1 | iex

*nix shell

Example output:

export DB_USER=admin
export DB_PASSWORD=changeme

Run osenv like this:

eval $(osenv)