Added better support for pyenv, virtualenvwrapper, and autoenv

working in concert with one another.
Features added:
- Added a pyenv-virtualenv plugin which creates virtual environments
  using the current pyenv python version
- `cd` into a directory that has a virtual environment already created
  and autoenv will automatically activate that environment
- Current virtual environment is displayed in command prompt
This commit is contained in:
Luke Culbertson
2014-09-25 17:23:53 -07:00
parent 4d2a8fe62b
commit a0f89bc1f8
3 changed files with 62 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
cite about-plugin
about-plugin 'load pyenv, if you are using it'
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PYENV_PATH=`which pyenv`
export PATH="$PYENV_PATH:$PATH"
[[ `which pyenv` ]] && eval "$(pyenv init -)"
#Load pyenv virtualenv if the virtualenv plugin is installed.