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` 2. Add `~/.rbenv/bin` to your `$PATH` for access to the `rbenv`
command-line utility. command-line utility.
~~~ sh * For **bash**:
~~~ bash
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
~~~ ~~~
**Ubuntu Desktop note**: Modify your `~/.bashrc` instead of `~/.bash_profile`. * For **Ubuntu Desktop**:
~~~ bash
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
~~~
**Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`. * 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 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 rbenv integration with your shell. This is the step that will make