Permalink
Browse files

Kill activation hooks for virtualenv

  • Loading branch information...
1 parent 277a036 commit 3825cfea0af0bf8b3ed0130e66430cda69f59428 @dcramer committed Oct 9, 2013
Showing with 0 additions and 15 deletions.
  1. +0 −10 virtualenvwrapper/postactivate
  2. +0 −5 virtualenvwrapper/postdeactivate
@@ -2,13 +2,3 @@
# This hook is run after every virtualenv is activated.
export PS1=$PROMPT
-
-PROJECT_DIR="$HOME/Development/$(basename $VIRTUAL_ENV)"
-if [ -d $PROJECT_DIR ]; then
- # If we aren't already within the project dir, cd into it
- if [[ ! `pwd` == "$PROJECT_DIR*" ]]; then
- export PRE_VENV_ACTIVATE_DIR=`pwd`
- cd "$PROJECT_DIR"
- fi
-fi
-unset PROJECT_DIR
@@ -1,7 +1,2 @@
#!/bin/bash
# This hook is run after every virtualenv is deactivated.
-
-if [ $PRE_VENV_ACTIVATE_DIR ]; then
- cd $PRE_VENV_ACTIVATE_DIR
- unset PRE_VENV_ACTIVATE_DIR
-fi

0 comments on commit 3825cfe

Please sign in to comment.