Changed pvenv functions to avoid name conflicts
parent
a0f89bc1f8
commit
7240a65706
|
|
@ -8,39 +8,39 @@ export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
|
||||||
# Activate autoenv
|
# Activate autoenv
|
||||||
source /usr/local/opt/autoenv/activate.sh
|
source /usr/local/opt/autoenv/activate.sh
|
||||||
|
|
||||||
function mkenv {
|
function mkpvenv {
|
||||||
about 'create a new virtualenv for this directory'
|
about 'create a new virtualenv for this directory'
|
||||||
group 'pyenv-virtualenv'
|
group 'pyenv-virtualenv'
|
||||||
|
|
||||||
eval "touch .env"
|
eval "touch .env"
|
||||||
eval "echo \"#!/bin/bash\" >> .env"
|
eval "echo \"#!/bin/bash\" >> .env"
|
||||||
eval "echo \"eval \"wovenv\"\" >> .env"
|
eval "echo \"eval \"wopvenv\"\" >> .env"
|
||||||
cwd=`basename \`pwd\``
|
cwd=`basename \`pwd\``
|
||||||
mkvirtualenv --distribute $cwd
|
mkvirtualenv --distribute $cwd
|
||||||
}
|
}
|
||||||
|
|
||||||
function mkvbranch {
|
function mkpvbranch {
|
||||||
about 'create a new virtualenv for the current branch'
|
about 'create a new virtualenv for the current branch'
|
||||||
group 'pyenv-virtualenv'
|
group 'pyenv-virtualenv'
|
||||||
|
|
||||||
mkvirtualenv --distribute "$(basename `pwd`)@$SCM_BRANCH"
|
mkvirtualenv --distribute "$(basename `pwd`)@$SCM_BRANCH"
|
||||||
}
|
}
|
||||||
|
|
||||||
function wovbranch {
|
function wopvbranch {
|
||||||
about 'sets workon branch'
|
about 'sets workon branch'
|
||||||
group 'pyenv-virtualenv'
|
group 'pyenv-virtualenv'
|
||||||
|
|
||||||
workon "$(basename `pwd`)@$SCM_BRANCH"
|
workon "$(basename `pwd`)@$SCM_BRANCH"
|
||||||
}
|
}
|
||||||
|
|
||||||
function wovenv {
|
function wopvenv {
|
||||||
about 'works on the virtualenv for this directory'
|
about 'works on the virtualenv for this directory'
|
||||||
group 'virtualenv'
|
group 'virtualenv'
|
||||||
|
|
||||||
workon "$(basename `pwd`)"
|
workon "$(basename `pwd`)"
|
||||||
}
|
}
|
||||||
|
|
||||||
function rmenv {
|
function rmpvenv {
|
||||||
about 'removes virtualenv for this directory'
|
about 'removes virtualenv for this directory'
|
||||||
group 'virtualenv'
|
group 'virtualenv'
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@ function rmenv {
|
||||||
eval "rm .env"
|
eval "rm .env"
|
||||||
}
|
}
|
||||||
|
|
||||||
function rmenvbranch {
|
function rmpvenvbranch {
|
||||||
about 'removes virtualenv for this directory'
|
about 'removes virtualenv for this directory'
|
||||||
group 'virtualenv'
|
group 'virtualenv'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue