1
0
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:
Sorin Ionescu
2012-09-03 10:34:41 -04:00
parent 1057801208
commit 98c545a102
4 changed files with 48 additions and 7 deletions

View File

@ -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
-------