1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 21:33:54 -05:00

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

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**:
~~~ 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