From f960e2be6f01abe5f185d668be661b57051322ac Mon Sep 17 00:00:00 2001 From: Arshad Kazmi Date: Mon, 20 May 2019 02:15:27 +0530 Subject: dotenv: add support for custom env file names (#7861) --- plugins/dotenv/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugins/dotenv/README.md') diff --git a/plugins/dotenv/README.md b/plugins/dotenv/README.md index e880e9d69..cac552485 100644 --- a/plugins/dotenv/README.md +++ b/plugins/dotenv/README.md @@ -32,6 +32,17 @@ PORT=3001 ``` You can even mix both formats, although it's probably a bad idea. +### ZSH_DOTENV_FILE + +You can also modify the name of the file to be loaded with the variable `ZSH_DOTENV_FILE`. +If the variable isn't set, the plugin will default to use `.env`. +For example, this will make the plugin look for files named `.dotenv` and load them: + +``` +# in ~/.zshrc, before Oh My Zsh is sourced: +ZSH_DOTENV_FILE=.dotenv +``` + ## Version Control **It's strongly recommended to add `.env` file to `.gitignore`**, because usually it contains sensitive information such as your credentials, secret keys, passwords etc. You don't want to commit this file, it's supposed to be local only. -- cgit v1.2.3-70-g09d2