mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Clarify the search precedence for .ruby-version files.
Closes #432 [ci skip]
This commit is contained in:
parent
a2adc61c6f
commit
1cc75362d6
1 changed files with 7 additions and 6 deletions
13
README.md
13
README.md
|
@ -108,13 +108,14 @@ reading it from the following sources, in this order:
|
||||||
the [`rbenv shell`](#rbenv-shell) command to set this environment
|
the [`rbenv shell`](#rbenv-shell) command to set this environment
|
||||||
variable in your current shell session.
|
variable in your current shell session.
|
||||||
|
|
||||||
2. The application-specific `.ruby-version` file in the current
|
2. The first `.ruby-version` file found by searching the directory of the
|
||||||
directory, if present. You can modify the current directory's
|
script you are executing and each of its parent directories until reaching
|
||||||
`.ruby-version` file with the [`rbenv local`](#rbenv-local)
|
the root of your filesystem.
|
||||||
command.
|
|
||||||
|
|
||||||
3. The first `.ruby-version` file found by searching each parent
|
3. The first `.ruby-version` file found by searching the current working
|
||||||
directory until reaching the root of your filesystem, if any.
|
directory and each of its parent directories until reaching the root of your
|
||||||
|
filesystem. You can modify the `.ruby-version` file in the current working
|
||||||
|
directory with the [`rbenv local`](#rbenv-local) command.
|
||||||
|
|
||||||
4. The global `~/.rbenv/version` file. You can modify this file using
|
4. The global `~/.rbenv/version` file. You can modify this file using
|
||||||
the [`rbenv global`](#rbenv-global) command. If the global version
|
the [`rbenv global`](#rbenv-global) command. If the global version
|
||||||
|
|
Loading…
Reference in a new issue