Set PsEnv Save

PowerShell DotEnv Loader

Project README

Set-PsEnv

PowerShell DotEnv

This is a simple script to load the .env file to process environment from the current directory.

Usage

Add the function Set-PsEnv to the prompt function.

Set-PsEnv
# This is function is called by convention in PowerShell
function prompt {
    Set-PsEnv
}

Create a .env file at the folder level the environment variable has to be exported
Sample .env file

#This is a comment
#Prefix to a variable
PATH := c:\test
#Append to a variable
PATH =: c:\suffix\bin
#Assign a variable
PYTHON=c:\python

Installation

Install-Module -Name Set-PsEnv
Open Source Agenda is not affiliated with "Set PsEnv" Project. README Source: rajivharris/Set-PsEnv
Stars
46
Open Issues
6
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating