mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-08-07 05:09:25 +00:00
python-info: provide python version info for theming
Closes #1173 Closes #958
This commit is contained in:
@ -135,6 +135,10 @@ following style in the `prompt_name_setup` function.
|
||||
Then add `$python_info[virtualenv]` to `$PROMPT` or `$RPROMPT` and call
|
||||
`python-info` in the `prompt_name_preexec` hook function.
|
||||
|
||||
Similarly, you can use `:prezto:module:python:info:version:format` with `%v` for
|
||||
the version and add `$python_info[version]` to your prompt for the current
|
||||
python version/
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
|
Reference in New Issue
Block a user