Skip to content

Instantly share code, notes, and snippets.

@carljm
Created July 12, 2011 18:21
Show Gist options
  • Save carljm/1078601 to your computer and use it in GitHub Desktop.
Save carljm/1078601 to your computer and use it in GitHub Desktop.
Yo dawg, I heard you like Ruby...
#!/bin/bash
# This hook is run after every virtualenv is activated.
export OLD_GEM_HOME=$GEM_HOME
export GEM_HOME=$VIRTUAL_ENV/gems/
export GEM_PATH=
export PATH=$VIRTUAL_ENV/gems/bin:$PATH
#!/bin/bash
# This hook is run before every virtualenv is deactivated.
export GEM_HOME=$OLD_GEM_HOME
unset GEM_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment