Created
July 22, 2011 10:08
-
-
Save alfredo/1099195 to your computer and use it in GitHub Desktop.
Adding this to the postmkvirtualenv hook will make your virtualenv to move to the current directory once activated
This file contains 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
#!/bin/bash | |
# This hook is run after a new virtualenv is activated. | |
echo cd `pwd` > $VIRTUAL_ENV/bin/postactivate | |
echo "Hook created to move to current directory" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment