To list vars configured by rbenv-vars: > rbenv vars To set environment variables for rbenv vars, edit the file .rbenv-vars in the folder from where Ruby is called. Each line has the format: VARNAME=varvalue When Ruby is called, ENV['VARNAME'] will yield 'varvalue'.
rbenv-vars is a plugin for rbenv, which is a Ruby version manager. rbenv-vars provides a convenient way to set environment variables for a Ruby program. These environment variables are independent of the code base of the Ruby program, and are set in the Ruby environment when Ruby is invoked via the shims from rbenv.