mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Merge pull request #1083 from AlexWayfer/patch-1
Update instructions for $PATH change in README
This commit is contained in:
commit
e55e3c05eb
1 changed files with 19 additions and 7 deletions
26
README.md
26
README.md
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue