rbenv-vars

Manage global and per-project environment variables for rbenv

brewmacoslinux
Try with needOr install directly
Source

About

Safely sets global and per-project environment variables

Commands

rbenv-vars

Examples

Set a global environment variable for all Ruby versions$ echo 'export DATABASE_URL=postgres://localhost/mydb' >> ~/.rbenv/vars
Set a project-specific environment variable in current directory$ echo 'export RAILS_ENV=development' >> .rbenv-vars
View all environment variables set for current project$ cat .rbenv-vars