Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Apr 29, 2024
1 parent 4fc59e4 commit 9ebd590
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ On systems with Homebrew package manager, the “Using Package Managers” metho
rbenv and you can install it from the AUR using the instructions from this
[wiki page](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_and_upgrading_packages).

2. Learn how to load rbenv in your shell.
2. Set up your shell to load rbenv.

```sh
# run this and follow the printed instructions:
rbenv init
```

Expand All @@ -75,29 +74,11 @@ This will get you going with the latest version of rbenv without needing a syste
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
```

2. Configure your shell to load rbenv:

* For **bash**:

_Ubuntu Desktop_ users should configure `~/.bashrc`:
```bash
echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc
```

On _other platforms_, bash is usually configured via `~/.bash_profile`:
```bash
echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bash_profile
```
* For **Zsh**:
```zsh
echo 'eval "$(~/.rbenv/bin/rbenv init - zsh)"' >> ~/.zshrc
```

* For **Fish shell**:
```fish
echo 'status --is-interactive; and ~/.rbenv/bin/rbenv init - fish | source' >> ~/.config/fish/config.fish
```
2. Set up your shell to load rbenv.

```sh
~/.rbenv/bin/rbenv init
```

If you are curious, see here to [understand what `init` does](#how-rbenv-hooks-into-your-shell).

Expand Down Expand Up @@ -280,7 +261,7 @@ name | default | description

### How rbenv hooks into your shell

`rbenv init` is a helper command to bootstrap rbenv into a shell. This helper is part of the recommended installation instructions, but optional, as an advanced user can set up the following tasks manually. Here is what the command does when its output is `eval`'d:
`rbenv init` is a helper command to bootstrap rbenv into a shell. This helper is part of the recommended installation instructions, but optional, as an advanced user can set up the following tasks manually. Here is what the command does when its output is `eval`'d by a shell during its startup:

0. Adds `rbenv` executable to PATH if necessary.

Expand Down

0 comments on commit 9ebd590

Please sign in to comment.