File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ RVM?**](https://github.com/sstephenson/rbenv/wiki/Why-rbenv%3F)
5454 * [ rbenv rehash] ( #rbenv-rehash )
5555 * [ rbenv which] ( #rbenv-which )
5656 * [ rbenv whence] ( #rbenv-whence )
57+ * [ Environment variables] ( #environment-variables )
5758* [ Development] ( #development )
5859
5960## How It Works
@@ -403,6 +404,18 @@ Lists all Ruby versions with the given command installed.
403404 jruby-1.7.1
404405 ree-1.8.7-2011.03
405406
407+ ## Environment variables
408+
409+ You can affect how rbenv operates with the following settings:
410+
411+ name | default | description
412+ -----|---------|------------
413+ `RBENV_VERSION` | | Specifies the Ruby version to be used.<br>Also see [`rbenv shell`](#rbenv-shell)
414+ `RBENV_ROOT` | `~/.rbenv` | Defines the directory under which Ruby versions and shims reside.<br>Also see `rbenv root`
415+ `RBENV_DEBUG` | | Outputs debug information.<br>Also as: `rbenv --debug <subcommand>`
416+ `RBENV_HOOK_PATH` | [_see wiki_][hooks] | Colon-separated list of paths searched for rbenv hooks.
417+ `RBENV_DIR` | `$PWD` | Directory to start searching for `.ruby-version` files.
418+
406419## Development
407420
408421The rbenv source code is [hosted on
@@ -419,3 +432,4 @@ tracker](https://github.com/sstephenson/rbenv/issues).
419432
420433
421434 [ruby-build]: https://github.com/sstephenson/ruby-build#readme
435+ [hooks]: https://github.com/sstephenson/rbenv/wiki/Authoring-plugins#rbenv-hooks
You can’t perform that action at this time.
0 commit comments