Yet another cli tool to load directory specific environemnt variables.
- PowerShell
- Bash
- Load environment variables from
.dnv
file in the current directory. - Interpolate existing environment variables to do smth like
PATH: [$PATH, "$PWD/bin"]
.
Select your operating system from the list below to view installation instructions:
Windows
Install dnv
using the latest executable from the releases section
Install dnv
using any of the following package managers:
Repository | Instructions |
---|---|
[scoop] | scoop bucket add sebakri https://github.com/sebakri/scoop |
scoop install dnv |
Configure your shell to initialize dnv
. Select yours from the list below:
PowerShell
Add the following to the end of your PowerShell configuration (find it by running $PROFILE
):
Invoke-Expression (& { (dnv init pwsh | Out-String) })
Placing a .dnv
file in a directory will load the environment variables defined in it.
environment_variables : {
FOO: "BAR"
}