Skip to content

Instantly share code, notes, and snippets.

@zachwill
Created October 4, 2011 19:33
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 zachwill/1262558 to your computer and use it in GitHub Desktop.
Save zachwill/1262558 to your computer and use it in GitHub Desktop.
#!/bin/bash
# For working with Python's pip and virtualenv modules.
activate() {
if [ "$1" != "" ]; then
source "$1/bin/activate"
elif [ -d "env" ]; then
source "env/bin/activate"
else
source "./bin/activate"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment