Last active
October 18, 2020 08:45
-
-
Save gelosi/392fdee919c53ae490c0ca0f1e80f819 to your computer and use it in GitHub Desktop.
add user-installed gems to PATH using zsh's config file (~/.zshrc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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