Skip to content

Commit

Permalink
Update instructions for $PATH change in README
Browse files Browse the repository at this point in the history
Describe for Fish shell in details, prevent issues like rbenv#195 and rbenv#459.

Reference: https://fishshell.com/docs/2.7/tutorial.html#tut_path
  • Loading branch information
AlexWayfer authored May 30, 2018
1 parent c8ba27f commit dfba9f7
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfba9f7

Please sign in to comment.