#dotenv #shell #launcher

app dotenv-shell

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

2 stable releases

Uses old Rust 2015

1.0.1 Feb 24, 2016
1.0.0 Feb 6, 2016

#50 in #dotenv

MIT license

4KB
60 lines

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, which handles the complicated part anyway.

Installation

cargo install dotenv-shell

Usage

Simply launching your $SHELL:

dotenv-shell

Launching an external program:

dotenv-shell my-application

License

MIT. See LICENSE.

Dependencies

~4MB
~80K SLoC