Skip to content

Instantly share code, notes, and snippets.

@matagus
Created January 24, 2013 18:22
Show Gist options
  • Save matagus/4626042 to your computer and use it in GitHub Desktop.
Save matagus/4626042 to your computer and use it in GitHub Desktop.
Post activate hook for virtualenvwrapper for loading env variables /paht/to/your/virtualenvs/postactivate
#!/bin/bash
# This hook is run after every virtualenv is activated.
envname="$(basename $VIRTUAL_ENV)"
if [ -e ".env" ]
then
source .env
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment