Skip to content

Instantly share code, notes, and snippets.

@gelosi
Last active October 18, 2020 08:45
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 gelosi/392fdee919c53ae490c0ca0f1e80f819 to your computer and use it in GitHub Desktop.
Save gelosi/392fdee919c53ae490c0ca0f1e80f819 to your computer and use it in GitHub Desktop.
add user-installed gems to PATH using zsh's config file (~/.zshrc)
# setup local gems path [yeah, fucking 2020 and it's still a problem]
if which ruby >/dev/null && which gem >/dev/null; then
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment