1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 23:19:25 +00:00

[python] Improve and document virtualenvwrapper initialization flow

Changes:
* Simplify zstyle name `skip-virtualenvwrapper-init` to `initialize`
  avoiding double negation in name
* Always perform `eval (pyenv virtualenv-init -)` at initialization
* Prefer `virtualenvwrapper_lazy` over `virtualenvwrapper` when available
* Honor `VIRTUALENVWRAPPER_VIRTUALENV` if it is defined.
* Document about `VIRTUALENVWRAPPER_PYTHON` and `VIRTUALENVWRAPPER_VIRTUALENV`
  (this would be particularly important in macOS after recent homebrew update)
* Add additional documentation for `initialize` in _README.md_ and _zpreztorc_
* Add aliases `py2`, `py3` as shortcut for `python2`, `python3` respectively
This commit is contained in:
Indrajit Raychaudhuri
2017-07-24 19:34:11 -05:00
committed by Indrajit Raychaudhuri
parent 7e7124e84a
commit 19435b16ea
3 changed files with 51 additions and 17 deletions

View File

@ -123,6 +123,9 @@ zstyle ':prezto:module:prompt' theme 'sorin'
# Auto switch the Python virtualenv on directory change.
# zstyle ':prezto:module:python:virtualenv' auto-switch 'yes'
# Automatically initialize virtualenvwrapper if pre-requisites are met.
# zstyle ':prezto:module:python:virtualenv' initialize 'yes'
#
# Screen
#