I am creating a video that shows how to set up the dev environment for Jekyll. I am using the official Jekyll documentation as a reference, which is located here:
As per the Jekyll documentation, you need to type the following command (there’s a different one for BASH). I believe that I used the following command when I originally set up my dev environment as well:
echo 'export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"' >> ~/.zshrc
However, when you install Homebrew and then install the latest version of Ruby with
brew install ruby, Brew performs the Ruby installation, and once complete, there is a message that looks like this:
If you need to have ruby first in your PATH, run: echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
My question is, should you do one or both of these commands? If just one, is it the Jekyll recommended line or the Brew/Ruby recommended line?