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:
parent
2aa33c8043
commit
b828ffd559
|
@ -28,14 +28,14 @@ To run the latest Ruby version you need to install it through [Homebrew](https:/
|
||||||
brew install ruby
|
brew install ruby
|
||||||
```
|
```
|
||||||
|
|
||||||
Add the brew ruby path to your shell configuration:
|
Add the brew ruby and gems path to your shell configuration:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# If you're using Zsh
|
# 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
|
# 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
|
# Unsure which shell you are using? Type
|
||||||
echo $SHELL
|
echo $SHELL
|
||||||
|
|
Loading…
Reference in New Issue