|
|
@ -69,7 +69,7 @@ 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_theme_setup` function. |
|
|
|
|
|
|
|
|
|
|
|
# %v - ruby version. |
|
|
|
# %v - ruby version. |
|
|
|
zstyle ':prezto:module:ruby' version '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_theme_preexec` hook function. |
|
|
|