Skip to content

Instantly share code, notes, and snippets.

@jbarone
Created October 10, 2013 14: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 jbarone/6919374 to your computer and use it in GitHub Desktop.
Save jbarone/6919374 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This hook is run after every virtualenv is activated.
proj_name=$(echo $VIRTUAL_ENV|awk -F'/' '{print $NF}')
if [ -d "$PROJECT_HOME/$proj_name" ] ; then
cd $PROJECT_HOME/$proj_name
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment