mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Merge pull request #870 from davidcelis/patch-1
Update `rbenv init` instructions
This commit is contained in:
commit
ad7dfa63ab
1 changed files with 4 additions and 10 deletions
14
README.md
14
README.md
|
@ -180,13 +180,8 @@ easy to fork and contribute any changes back upstream.
|
||||||
|
|
||||||
**Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`.
|
**Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`.
|
||||||
|
|
||||||
3. Add `rbenv init` to your shell to enable shims and autocompletion.
|
3. Run `~/.rbenv/bin/rbenv init` for shell-specific instructions on how to
|
||||||
|
initialize rbenv to enable shims and autocompletion.
|
||||||
~~~ sh
|
|
||||||
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
|
|
||||||
~~~
|
|
||||||
|
|
||||||
_Same as in previous step, use `~/.bashrc` on Ubuntu, or `~/.zshrc` for Zsh._
|
|
||||||
|
|
||||||
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.) Now check if rbenv was set up:
|
terminal tab will usually do it.) Now check if rbenv was set up:
|
||||||
|
@ -237,9 +232,8 @@ $ brew update
|
||||||
$ brew install rbenv
|
$ brew install rbenv
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Afterwards you'll still need to add `eval "$(rbenv init -)"` to your
|
Afterwards you'll still need to run `rbenv init` for instructions
|
||||||
profile as stated in the caveats. You'll only ever have to do this
|
as stated in the caveats. You'll only ever have to do this once.
|
||||||
once.
|
|
||||||
|
|
||||||
### How rbenv hooks into your shell
|
### How rbenv hooks into your shell
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue