Skip to content

Instantly share code, notes, and snippets.

@alfredo
Created July 22, 2011 10:08
Show Gist options
  • Save alfredo/1099195 to your computer and use it in GitHub Desktop.
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
#!/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