Merge pull request #1083 from AlexWayfer/patch-1

Update instructions for $PATH change in README
This commit is contained in:
Mislav Marohnić 2018-06-05 01:45:30 +02:00 committed by GitHub
commit e55e3c05eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,13 +225,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**:
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile ~~~ bash
~~~ $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
~~~
**Ubuntu Desktop note**: Modify your `~/.bashrc` instead of `~/.bash_profile`.
* For **Ubuntu Desktop**:
**Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`. ~~~ 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 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