Using RVM
- Install RVM
- Add the snipped to
~/.bash_aliases
. The RVM install script may report a different path--use that one.if [[ -f $HOME/.rvm/scripts/rvm ]]; then source $HOME/.rvm/scripts/rvm fi
rvm install 3.0.0
, or any other ruby versionrvm --default use 3.0.0
, or the installed version- Check the output of
which gem
. It should point to the installed one. gem install bundler
bundle install
to install the gems needed for a projectbundle exec jekyll serve