From 7f1aefa09bdf7dd03cabc693e6250ae6748ed9e7 Mon Sep 17 00:00:00 2001 From: Javier Candeira Date: Mon, 10 Dec 2012 09:53:57 +1100 Subject: [PATCH] fix install instructions for ubuntu (using version 12.04, but should work for all versions) --- README.md | 14 +++++++++++--- doc/README.mdtoc | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 79852d6a..5fca4028 100644 --- a/README.md +++ b/README.md @@ -102,16 +102,24 @@ easy to fork and contribute any changes back upstream. **Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`. + **Ubuntu note**: Ubuntu uses `~/.profile` for enabling certain path + changes. This file won't be read if you create a `~/.bash_profile`. + Therefore, it's recommended that you add this line and the one in + point 3 below to your `~/.profile`. This has the added advantage + of working under both bash and zsh. + 3. Add rbenv init to your shell to enable shims and autocompletion. $ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile **Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`. + + **Ubuntu note**: Same as Ubuntu note for point 2 above. -4. Restart your shell so the path changes take effect. You can now - begin using rbenv. +4. Restart your shell as a login shell so the path changes take effect. + You can now begin using rbenv. - $ exec $SHELL + $ exec $SHELL -l 5. Install Ruby versions into `~/.rbenv/versions`. For example, to install Ruby 1.9.3-p327, download and unpack the source, then run: diff --git a/doc/README.mdtoc b/doc/README.mdtoc index ac2c4bdf..12802a67 100644 --- a/doc/README.mdtoc +++ b/doc/README.mdtoc @@ -82,16 +82,24 @@ easy to fork and contribute any changes back upstream. **Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`. + **Ubuntu note**: Ubuntu uses `~/.profile` for enabling certain path + changes. This file won't be read if you create a `~/.bash_profile`. + Therefore, it's recommended that you add this line and the one in + point 3 below to your `~/.profile`. This has the added advantage + of working under both bash and zsh. + 3. Add rbenv init to your shell to enable shims and autocompletion. $ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile **Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`. + + **Ubuntu note**: Same as Ubuntu note for point 2 above. -4. Restart your shell so the path changes take effect. You can now - begin using rbenv. +4. Restart your shell as a login shell so the path changes take effect. + You can now begin using rbenv. - $ exec $SHELL + $ exec $SHELL -l 5. Install Ruby versions into `~/.rbenv/versions`. For example, to install Ruby 1.9.3-p327, download and unpack the source, then run: