---
description: >-
  rbenv is a version manager tool for the Ruby programming language on Unix-like
  systems. It is useful for switching between multiple Ruby versions on the same
  machine and for ensuring that each project
---

# Rbenv

Install via Homebrew

```sh
brew install rbenv ruby-build
```

View list of versions installed

```sh
rbenv versions
```

Set specific version

```sh
rbenv local <version-number> # eg. rbenv local 2.7.2
```

Uninstall version

```sh
rbenv uninstall <version-number> # eg. rbenv uninstall 2.7.2
```

Add the below code to `~/.zshrc` to take Ruby using rbenv

```sh
eval "$(rbenv init - zsh)"
```



