# Add the brew ruby 3.0.1 to the shell configuration

**URL:** <https://talk.jekyllrb.com/t/add-the-brew-ruby-3-0-1-to-the-shell-configuration/6115>\
**Category:** Help\
**Created:** [June 2, 2021, 12:54am UTC](https://talk.jekyllrb.com/t/add-the-brew-ruby-3-0-1-to-the-shell-configuration/6115 "2021-06-02T00:54:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BillRaymond](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billraymond/32/5963_2.png) [@BillRaymond](https://talk.jekyllrb.com/u/BillRaymond)\
**Post date:** [June 2, 2021, 12:54am UTC](https://talk.jekyllrb.com/t/add-the-brew-ruby-3-0-1-to-the-shell-configuration/6115/1 "2021-06-02T00:54:44Z")

</div>

After running `brew install ruby`, Homebrew installed Ruby 3.0.1.

As per the [Jekyll installation docs](https://jekyllrb.com/docs/installation/macos/), that step is followed by the following command:

```auto
# If you're using Zsh
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:/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"' >> ~/.bash_profile

```

However, I noticed the command points to the `3.0.0` path. If I run the command as shown above (in my case with zsh), there are no errors. Also, if I change the path to `3.0.1`, I still do not receive an error.

My question is do I change `3.0.0` to `3.0.1` because the Jekyll docs are out of date or is `3.0.0` just fine so long as I am running Ruby 3.x?

Thank you.

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [June 2, 2021, 1:10am UTC](https://talk.jekyllrb.com/t/add-the-brew-ruby-3-0-1-to-the-shell-configuration/6115/2 "2021-06-02T01:10:54Z")

</div>

I believe the gem path is only updated when the major or minor version changes, but not when the patch version changes (a version number being: `major . minor . patch`). So you shouldn’t need to change the `/usr/local/lib/ruby/gems/3.0.0/bin` path until you upgrade to 3.1.x.

---

<div class="post-metadata">

**Author:** ![BillRaymond](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billraymond/32/5963_2.png) [@BillRaymond](https://talk.jekyllrb.com/u/BillRaymond)\
**Post date:** [June 2, 2021, 4:29am UTC](https://talk.jekyllrb.com/t/add-the-brew-ruby-3-0-1-to-the-shell-configuration/6115/3 "2021-06-02T04:29:43Z")

</div>

Okay, cool, thanks! I’ll get it set up this week just to verify there aren’t any problems and let you know.

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [June 2, 2021, 6:22am UTC](https://talk.jekyllrb.com/t/add-the-brew-ruby-3-0-1-to-the-shell-configuration/6115/4 "2021-06-02T06:22:57Z")

</div>

No issue here.

I upgraded Ruby 2.7 from say 2.7.2 to 2.7.3 and the path is still 2.7.0

So it will be the same for 3.0.0

I suppose the directory should just omit the last zero as it means nothing, but anyway
