Skip to content

A simple shell script to load environment variables from .env to use them in your shell

License

Notifications You must be signed in to change notification settings

builtinnya/dotenv-shell-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

dotenv-shell-loader

dotenv-shell-loader is a simple shell script that defines a function (dotenv) to load environment variables from .env to use them in your shell.

Usage

  1. Clone this repo and load dotenv-shell-loader.sh.

    $ git clone [email protected]:builtinnya/dotenv-shell-loader.git
    $ source dotenv-shell-loader/dotenv-shell-loader.sh
    $ # You probably want to load the script at shell startup
  2. Execute dotenv in a directory which contains .env file to load environment variables.

    $ cd /path/to/somewhere
    $ dotenv

License

Copyright © 2016-present Naoto Yokoyama

Distributed under the WTFPL license. See the LICENSE file for full details.

About

A simple shell script to load environment variables from .env to use them in your shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages