Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/badboy/dotenv-shell

Launch a new shell (or another program) with your loaded dotenv
https://github.com/badboy/dotenv-shell

Last synced: 24 days ago
JSON representation

Launch a new shell (or another program) with your loaded dotenv

Awesome Lists containing this project

README

        

# dotenv-shell

[![crates.io](http://meritbadge.herokuapp.com/dotenv-shell)](https://crates.io/crates/dotenv-shell)

Launch a new shell (or another program) with your loaded dotenv.

This application is meant to be used on development or testing environments in which setting environment variables is not practical.
It loads environment variables from a .env file, if available, and mashes those with the actual environment variables provided by the operative system.*

_* Adopted from [rust-dotenv](https://github.com/slapresta/rust-dotenv), which handles the complicated part anyway._

## Installation

```bash
cargo install dotenv-shell
```

## Usage

Simply launching your `$SHELL`:

```
dotenv-shell
```

Launching an external program:

```
dotenv-shell my-application
```

## License

MIT. See [LICENSE](LICENSE).