Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/qustavo/dotenv.sh
- Owner: qustavo
- License: bsd-2-clause
- Created: 2014-10-31T16:46:51.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-03-31T18:25:14.000Z (over 5 years ago)
- Last Synced: 2024-04-09T12:01:59.872Z (7 months ago)
- Language: Shell
- Size: 145 KB
- Stars: 44
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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