Skip to content

Instantly share code, notes, and snippets.

@brainsik
Created June 5, 2011 20:42
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 brainsik/1009402 to your computer and use it in GitHub Desktop.
Save brainsik/1009402 to your computer and use it in GitHub Desktop.
Keep per virtualenv postactivate scripts in WORKON_HOME
#!/bin/bash
# This hook is run after every virtualenv is activated.
script="$VIRTUALENVWRAPPER_HOOK_DIR/postactivate-"$(basename $VIRTUAL_ENV)
if [ -r $script ]; then
source $script
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment