Created
September 22, 2014 15:03
-
-
Save nhanb/6eddf652f616f0b3123b to your computer and use it in GitHub Desktop.
postmkvirtualenv
This file contains hidden or 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
#!/usr/bin/env bash | |
# This hook is sourced after a new virtualenv is activated. | |
# Automatically create symlink to project-specific virtualenv hook | |
hook="`pwd`/.virtualenv/postactivate" | |
if [[ -e "$hook" ]]; then | |
rm -f $VIRTUAL_ENV/bin/postactivate | |
ln -s $hook $VIRTUAL_ENV/bin/postactivate | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment