Mislav Marohnić
43b28caa94
Fix discovering .ruby-version
files in root directory
...
It's not that this is a preferred way to set a global version (one
should use `rbenv global <version>` instead), but this fixes the
function purely for correctness: all parent directories should be
scanned, even the root directory.
Fixes #745
2015-06-09 17:24:15 +02:00
Sam Stephenson
b974bf54dc
Prefer .ruby-version to .rbenv-version for reading local versions
2012-12-30 18:35:20 -06:00
Mislav Marohnić
3436bddaea
new-style documentation for most commands
2012-12-29 23:34:53 +01:00
Sam Stephenson
6c1fb9ffd0
Fall back to $PWD if a local version file can't be found in $RBENV_DIR
2012-12-27 13:39:36 -06:00
Sam Stephenson
0a4ffcd15f
Global version file is now ${RBENV_ROOT}/version
...
This is the last time it'll change. Promise.
2011-09-28 09:45:58 -05:00
Sam Stephenson
07815769ae
RBENV_DIR sets the directory from which .rbenv-version files are scanned
2011-09-27 15:50:39 -05:00
Sam Stephenson
0632325a43
Set RBENV_DEBUG=1 to see what's going on under the hood
2011-09-12 10:11:59 -05:00
Sam Stephenson
7ac964353f
RBENV_HOME -> RBENV_ROOT
2011-09-11 11:58:57 -05:00
Alexander Rinass
5130f0464a
Support install locations other than $HOME/.rbenv.
...
Define RBENV_HOME env variable in libexec/rbenv and let all script delegates use this variable to determine rbenv's install location.
2011-08-25 09:28:01 +02:00
Sam Stephenson
5be66da9f4
Rename rbenv-default to rbenv-global
2011-08-18 14:35:00 -05:00
Sam Stephenson
506bc3634f
Extract rbenv-version-file{,-read,-write}
2011-08-18 14:11:40 -05:00