mirror of
https://github.com/rbenv/rbenv.git
synced 2024-12-29 13:15:42 +01:00
parent
526f2de13d
commit
69323e77cc
1 changed files with 7 additions and 10 deletions
17
README.md
17
README.md
|
@ -209,20 +209,17 @@ a systemwide install.
|
|||
command-line utility.
|
||||
|
||||
* For **bash**:
|
||||
|
||||
Ubuntu Desktop users should configure `~/.bashrc`:
|
||||
~~~ bash
|
||||
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
||||
~~~
|
||||
|
||||
On other platforms, bash is usually configured via `~/.bash_profile`:
|
||||
~~~ bash
|
||||
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
|
||||
~~~
|
||||
|
||||
* For **Ubuntu Desktop**:
|
||||
|
||||
In Ubuntu ~/.bash_profile is only sourced by bash when started in interactive login mode.
|
||||
That is typically only when you login at the console (Ctrl+Alt+F1..F6), or connecting via ssh.
|
||||
This issue is explained in detail
|
||||
[here](https://askubuntu.com/questions/121073/why-bash-profile-is-not-getting-sourced-when-opening-a-terminal#121075).
|
||||
~~~ bash
|
||||
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
|
||||
~~~
|
||||
|
||||
* For **Zsh**:
|
||||
~~~ zsh
|
||||
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
|
||||
|
|
Loading…
Reference in a new issue