make rbenv init more visible in the readme (#1092)

[ci skip]
This commit is contained in:
jacob 2018-06-07 16:33:25 -05:00 committed by Mislav Marohnić
parent 199e598351
commit 8b18b962a3

View file

@ -163,9 +163,13 @@ If you're on macOS, we recommend installing rbenv with
Note that this also installs `ruby-build`, so you'll be ready to Note that this also installs `ruby-build`, so you'll be ready to
install other Ruby versions out of the box. install other Ruby versions out of the box.
2. Run `rbenv init` and follow the instructions to set up 2. Set up rbenv in your shell.
rbenv integration with your shell. This is the step that will make
running `ruby` "see" the Ruby version that you choose with rbenv. ~~~ sh
$ rbenv init
~~~
Follow the printed instructions to [set up rbenv shell integration](#how-rbenv-hooks-into-your-shell).
3. Close your Terminal window and open a new one so your changes take 3. Close your Terminal window and open a new one so your changes take
effect. effect.
@ -245,9 +249,13 @@ a systemwide install.
$ set -Ux fish_user_paths $HOME/.rbenv/bin $fish_user_paths $ set -Ux fish_user_paths $HOME/.rbenv/bin $fish_user_paths
~~~ ~~~
3. Run `~/.rbenv/bin/rbenv init` and follow the instructions to set up 3. Set up rbenv in your shell.
rbenv integration with your shell. This is the step that will make
running `ruby` "see" the Ruby version that you choose with rbenv. ~~~ sh
$ ~/.rbenv/bin/rbenv init
~~~
Follow the printed instructions to [set up rbenv shell integration](#how-rbenv-hooks-into-your-shell).
4. Restart your shell so that PATH changes take effect. (Opening a new 4. Restart your shell so that PATH changes take effect. (Opening a new
terminal tab will usually do it.) terminal tab will usually do it.)