johnhamelink / env-zsh

Automatically load environment variables from a .env file in your current working directory, triggered when you change directory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Env-zsh

Automatically load environment variables from a .env file in your current working directory, triggered when you change directory.

NB: the .env file is sourced, so you must make sure that the syntax of the .env file is valid ZSH

How to install

cd ~/.oh-my-zsh/plugins
git clone https://github.com/johnhamelink/env-zsh.git env
vi ~/.zshrc && reload

# edit your plugin list by adding 'env'
...
plugins=(git ... env)
...

save and you are done \o/

About

Automatically load environment variables from a .env file in your current working directory, triggered when you change directory.

License:MIT License


Languages

Language:Shell 100.0%