Skip workon if not in root directory

pull/261/head
luke 2014-10-27 10:31:19 -07:00 committed by Hector Rivas
parent c159d96c67
commit f264657e0c
1 changed files with 2 additions and 2 deletions

View File

@ -15,10 +15,10 @@ function mkpvenv {
about 'create a new virtualenv for this directory'
group 'pyenv-virtualenv'
cwd=`basename \`pwd\``
eval "touch .env"
eval "echo \"#!/bin/bash\" >> .env"
eval "echo \"eval \"wopvenv\"\" >> .env"
cwd=`basename \`pwd\``
eval "echo \"if [ \\\`basename \\\$(pwd)\\\` == \\\"$cwd\\\" ]; then \"eval \"wopvenv\"\"; fi\" >> .env"
mkvirtualenv --distribute $cwd
}