Skip to content

Commit 433992e

Browse files
committed
Merge pull request #138 from kerstin/autoactivate
Clarification of auto-activation/deactivation feature
2 parents 5963688 + efe6d67 commit 433992e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ From inside that directory you can:
3434
$ git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
3535
```
3636

37-
2. (OPTIONAL) **Add `pyenv virtualenv-init` to your shell** to enable auto-activation of virtualenv. This is entirely optional but pretty useful.
37+
2. (OPTIONAL) **Add `pyenv virtualenv-init` to your shell** to enable auto-activation of virtualenvs. This is entirely optional but pretty useful. See "Activate virtualenv" below.
3838

3939
```sh
4040
$ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
@@ -125,8 +125,7 @@ $ pyenv virtualenvs
125125
Some external tools (e.g. [jedi](https://github.com/davidhalter/jedi)) might
126126
require you to `activate` the virtualenv and `conda` environments.
127127
128-
`pyenv-virtualenv` will automatically activate/deactivate the virtualenv if
129-
the `eval "$(pyenv virtualenv-init -)"` is properly configured in your shell.
128+
If `eval "$(pyenv virtualenv-init -)"` is configured in your shell, `pyenv-virtualenv` will automatically activate/deactivate virtualenvs on entering/leaving directories which contain a `.python-version` file that lists a valid virtual environment. `.python-version` files denote local Python versions and can be created and deleted with the [`pyenv local`](https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-local) command.
130129
131130
You can also activate and deactivate a pyenv virtualenv manually:
132131

0 commit comments

Comments
 (0)