mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-01 03:51:12 +00:00
Fix the name of the theme setup function in READMEs
This commit is contained in:
parent
be300dbd80
commit
b36d98e431
@ -86,13 +86,13 @@ Theming
|
|||||||
-------
|
-------
|
||||||
|
|
||||||
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_theme_setup` function.
|
following style in the `prompt_name_setup` function.
|
||||||
|
|
||||||
# %v - virtualenv name.
|
# %v - virtualenv name.
|
||||||
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_theme_preexec` hook function.
|
`python-info` in the `prompt_name_preexec` hook function.
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
-------
|
-------
|
||||||
|
@ -66,13 +66,13 @@ Theming
|
|||||||
-------
|
-------
|
||||||
|
|
||||||
To display the name of the current Ruby version in a prompt, define the
|
To display the name of the current Ruby version in a prompt, define the
|
||||||
following style in the `prompt_theme_setup` function.
|
following style in the `prompt_name_setup` function.
|
||||||
|
|
||||||
# %v - ruby version.
|
# %v - ruby version.
|
||||||
zstyle ':prezto:module:ruby:info:version' format 'version:%v'
|
zstyle ':prezto:module:ruby:info:version' format 'version:%v'
|
||||||
|
|
||||||
Then add `$ruby_info[version]` to `$PROMPT` or `$RPROMPT` and call
|
Then add `$ruby_info[version]` to `$PROMPT` or `$RPROMPT` and call
|
||||||
`ruby-info` in the `prompt_theme_preexec` hook function.
|
`ruby-info` in the `prompt_name_preexec` hook function.
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
-------
|
-------
|
||||||
|
Loading…
Reference in New Issue
Block a user