Fix for important missing step in macOS Installation Docs: Add the Homebrew gems directory to the PATH (#8496)

Merge pull request 8496
This commit is contained in:
Moncef Belyamani 2021-03-27 12:25:29 -04:00 committed by GitHub
parent 2aa33c8043
commit b828ffd559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -28,14 +28,14 @@ To run the latest Ruby version you need to install it through [Homebrew](https:/
brew install ruby
```
Add the brew ruby path to your shell configuration:
Add the brew ruby and gems path to your shell configuration:
```bash
# If you're using Zsh
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"' >> ~/.zshrc
# If you're using Bash
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"' >> ~/.bash_profile
# Unsure which shell you are using? Type
echo $SHELL