mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-17 16:03:42 -05:00
activate: invoke pyenv shell only if the arguments passed
This commit is contained in:
15
README.md
15
README.md
@@ -86,13 +86,7 @@ version.
|
||||
Some external tools (e.g. [jedi](https://github.com/davidhalter/jedi)) might require you to `activate` the virtualenv.
|
||||
`pyenv activate` lets you to activate the virtualenv into your shell.
|
||||
|
||||
$ pyenv activate venv27
|
||||
|
||||
`pyenv activate` acts almost like following commands.
|
||||
The activate'd virtualenv will be persisted as _shell_ version.
|
||||
|
||||
$ pyenv shell venv27
|
||||
$ source "$(pyenv prefix venv27)/bin/activate"
|
||||
$ pyenv activate
|
||||
|
||||
### Deactivate virtualenv
|
||||
|
||||
@@ -105,13 +99,6 @@ This is prepared for similality between other `pyenv` commands like `shell` and
|
||||
|
||||
$ pyenv activate --unset
|
||||
|
||||
`pyenv deactivate` acts almost like following commands.
|
||||
You can also use virtualenv's `deactivate` in place of `pyenv deactivate`,
|
||||
but be careful with the _shell_ version because it will be persisted even if `deactivate` has invoked.
|
||||
|
||||
$ deactivate
|
||||
$ pyenv shell --unset
|
||||
|
||||
### Special environment variables
|
||||
|
||||
You can set certain environment variables to control the pyenv-virtualenv.
|
||||
|
||||
Reference in New Issue
Block a user