mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-08-07 05:09:25 +00:00
[Fix #248] Replace virtualenv_info with python-info
Conflicts: modules/python/README.md
This commit is contained in:
@ -44,6 +44,17 @@ convenient shell functions to create, switch, and manage them.
|
||||
Install virtualenvwrapper and set [`$WORKON_HOME`][4] to the path where virtual
|
||||
environments will be stored.
|
||||
|
||||
### Theming
|
||||
|
||||
To display the name of the current virtual enviroment in a prompt, define the
|
||||
following style in the `prompt_theme_setup` function.
|
||||
|
||||
# %v - virtualenv name.
|
||||
zstyle ':omz:module:python' virtualenv 'virtualenv:%v'
|
||||
|
||||
Then add `$python_info[virtualenv]` to `$PROMPT` or `$RPROMPT` and call
|
||||
`python-info` in the `prompt_theme_preexec` hook function.
|
||||
|
||||
Aliases
|
||||
-------
|
||||
|
||||
@ -59,6 +70,12 @@ Aliases
|
||||
- `pyzu` updates itself to the latest version.
|
||||
- `pyzx` uninstalls Python versions.
|
||||
|
||||
Functions
|
||||
---------
|
||||
|
||||
- `python-info` exposes information about the Python environment via the
|
||||
`$python_info` associative array.
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
|
Reference in New Issue
Block a user