Skip to content

Instantly share code, notes, and snippets.

@dracos
Created February 22, 2015 18:57
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 dracos/71cb474b35af26573fd9 to your computer and use it in GitHub Desktop.
Save dracos/71cb474b35af26573fd9 to your computer and use it in GitHub Desktop.
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