> For the complete documentation index, see [llms.txt](https://www.devops.buzz/public/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.devops.buzz/public/ruby/cheat-sheet.md).

# Cheat Sheet

## Gem $PATH

```
echo 'export PATH="$(gem env home)/bin":$PATH' >> ~/.zshrc
```

## rvm

Install rvm.

```
command curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable
```

Edit `.bashrc` and add.

```
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
```

Install ruby.

```
rvm list known
rvm install ruby-3.1.0
rvm use ruby-3.1.0 --install --default --create
```

\~
