Skip to content

Instantly share code, notes, and snippets.

@baurzhan-konurbayev
Last active February 8, 2022 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baurzhan-konurbayev/791f5a93c4f2135e82f051296b61d59e to your computer and use it in GitHub Desktop.
Save baurzhan-konurbayev/791f5a93c4f2135e82f051296b61d59e to your computer and use it in GitHub Desktop.
# Configure Ruby and Gems paths on Mac
export RUBY_PATH=/usr/local/opt/ruby/bin
export PATH="$RUBY_PATH:$PATH"
export RUBY_VERSION=$($RUBY_PATH/ruby -e "puts RUBY_VERSION")
export PATH="/usr/local/lib/ruby/gems/$RUBY_VERSION/bin:$PATH"
export GEM_HOME="$HOME/.gem"
export GEM_PATH="$GEM_HOME/ruby/$RUBY_VERSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment