Update instructions for $PATH change in README

Describe for Fish shell in details, prevent issues like #195 and #459.

Reference: https://fishshell.com/docs/2.7/tutorial.html#tut_path
This commit is contained in:
Alexander Popov 2018-05-30 15:11:09 +03:00 committed by GitHub
parent c8ba27fd07
commit dfba9f7608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,13 +221,25 @@ a systemwide install.
2. Add `~/.rbenv/bin` to your `$PATH` for access to the `rbenv`
command-line utility.
~~~ sh
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
~~~
**Ubuntu Desktop note**: Modify your `~/.bashrc` instead of `~/.bash_profile`.
**Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`.
* For **bash**:
~~~ bash
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
~~~
* For **Ubuntu Desktop**:
~~~ bash
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
~~~
* For **Zsh**:
~~~ zsh
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
~~~
* For **Fish shell**:
~~~ fish
$ set -Ux fish_user_paths $HOME/.rbenv/bin $fish_user_paths
~~~
3. Run `~/.rbenv/bin/rbenv init` and follow the instructions to set up
rbenv integration with your shell. This is the step that will make