Skip to content

sebakri/dnv

Repository files navigation

dnv

Yet another cli tool to load directory specific environemnt variables.

Currently supported shells

  • PowerShell
  • Bash

Current features

  • Load environment variables from .dnv file in the current directory.
  • Interpolate existing environment variables to do smth like PATH: [$PATH, "$PWD/bin"].

Installation

Step 1. Install dnv executable

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

Step 2. Set up your shell to use 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) })

Usage

Placing a .dnv file in a directory will load the environment variables defined in it.

Example

environment_variables : {
	FOO: "BAR"
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages