Skip to content

Instantly share code, notes, and snippets.

@dracos
Created Feb 22, 2015
Embed
What would you like to do?
Using virtualenv for ruby gems
# Put this in your virtualenv's postactivate
# (if you're using virtualenvwrapper, add to
# ~/.virtualenvs/postactivate (or wherever))
export GEM_HOME="$VIRTUAL_ENV/gems"
export PATH="$GEM_HOME/bin":$PATH
# If you don't want your default ruby gem
# locations searched, uncomment this line
# export GEM_PATH=""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment