Manage your app's Ruby environment
.ruby-version
files to .rbenv-version
files
for specifying local application-specific versions. The
.ruby-version
file has the same format as .rbenv-version
but is
compatible with other Ruby version
managers.ruby-local-exec
and moved its functionality into the
standard ruby
shim. See the ruby-local-exec wiki
page for
upgrade instructions.$PATH
.rbenv help
so that usage and documentation is stored as a
comment in each subcommand, enabling plugin commands to hook into
the help system.rbenv --version
for printing the current version of rbenv./usr/lib/rbenv/hooks
to the plugin hook search path.rbenv init
by avoiding rbenv reinitialization and by
using a simpler indexing approach.rbenv which
and rbenv prefix
with system Ruby versions.rbenv exec
to avoid prepending the system Ruby location to
$PATH
to fix issues running system Ruby commands that invoke other
commands.rbenv rehash
to ensure it exits with a 0 status code under
normal operation, and to ensure outdated shims are removed first
when rehashing.rbenv rehash
to run hash -r
afterwards, when shell
integration is enabled, to ensure the shell's command cache is
cleared.+=
operator to support older versions of Bash.rbenv versions
output to include system
, if
present.rbenv versions
not to display a warning if the currently
specified version doesn't exist.rbenv
shell
function wrapper.rbenv shell
to ensure it exits with a non-zero status on
failure.rbenv which
to account for path entries with spaces.rbenv init
to accept option arguments in any order.