Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qustavo/dotenv.sh

Loads environment variables from `.env` in your shell
https://github.com/qustavo/dotenv.sh

Last synced: 3 months ago
JSON representation

Loads environment variables from `.env` in your shell

Awesome Lists containing this project

README

        

# dotenv.sh

> Loads environment variables from `.env` in your shell

## Installation
```sh
$ wget https://raw.githubusercontent.com/gchaincl/dotenv.sh/master/dotenv.sh -O ~/.dotenv.sh
```
Add the following to your `.bashrc`, `.zshrc` or `.rc`:
```sh
source ~/.dotenv.sh
```

## Usage
Each time you `cd` to a directory, dotenv.sh will try to load a `.env` file and export it's content

## TODO
* Unload loaded variables when you exit directory
* Optional variable overwriting