@ -74,6 +74,8 @@ Functions
Theming
Theming
-------
-------
- `python_info[virtualenv]` exposes virtualenv name
- `python_info[version]` exposes virtualenv python version (eg. py-3.4.1, py-2.7.6)
To display the name of the current virtual enviroment in a prompt, define the
To display the name of the current virtual enviroment in a prompt, define the
following style in the `prompt_name_setup` function.
following style in the `prompt_name_setup` function.
@ -82,7 +84,7 @@ following style in the `prompt_name_setup` function.
zstyle ':prezto:module:python:info:virtualenv' format 'virtualenv:%v'
zstyle ':prezto:module:python:info:virtualenv' format 'virtualenv:%v'
Then add `$python_info[virtualenv]` to `$PROMPT` or `$RPROMPT` and call
Then add `$python_info[virtualenv]` to `$PROMPT` or `$RPROMPT` and call
`python-info` in the `prompt_name_pre exe c` hook function.
`python-info` in the `prompt_name_pre cmd ` hook function.
Authors
Authors
-------
-------