ashald / EnvFile

EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.
MIT License
542 stars 129 forks source link

Support for default values in .env #49

Closed ilansh closed 6 years ago

ilansh commented 6 years ago

Would it be possible to support syntax of default values in .env files? As in

DB_HOST=${DB_HOST:-127.0.0.1:3306}

This can prove very helpful for my usage pattern.

ashald commented 6 years ago

This will not be compatible with the underlying .env file spec, to the best of my knowledge, but I'm considering adding an option to allow variables expansion. Please follow #16 for updates.