1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-08-07 05:09:25 +00:00

python: make a reasonable guess about virtualenvwrapper python location

Fixes #1416
This commit is contained in:
Kaleb Elwert
2017-12-11 11:01:40 -08:00
parent aa0395244d
commit e021adeb4a
3 changed files with 30 additions and 4 deletions

View File

@ -8,11 +8,15 @@ Settings
This module supports virtual environments from conda and virtualenvwrapper. By default, only virtualenvwrapper is enabled. To disable virtualenvwrapper, add the following to *zpreztorc*.
zstyle ':prezto:module:python' skip-virtualenvwrapper-init 'on'
```sh
zstyle ':prezto:module:python' skip-virtualenvwrapper-init 'on'
```
Conda support is enabled by adding the following to *zpreztorc*.
zstyle ':prezto:module:python' conda-init 'on'
```sh
zstyle ':prezto:module:python' conda-init 'on'
```
Caution: using conda and virtualenvwrapper at the same time may cause conflicts.
@ -106,10 +110,18 @@ zstyle ':prezto:module:python:virtualenv' auto-switch 'yes'
(`$VIRTUALENVWRAPPER_VIRTUALENV` is explicitly set or `virtualenv` is in
`$PATH`). This can be disabled with:
```
```sh
zstyle ':prezto:module:python:virtualenv' initialize 'no'
```
On some systems, the `python` binary doesn't exist so in order to get
virtualenvwrapper to work, the path needs to specified. We do our best to detect
this, but sometimes it needs manual intervention.
```sh
zstyle ':prezto:module:python:virtualenvwrapper' python-path /opt/python3/bin/python3
```
Aliases
-------