From 8ea0e42b7f99368ee88059f68cb27e2927ed435f Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 1 Oct 2012 22:00:12 -0400 Subject: [PATCH] Rename ruby-info zstyle patterns --- modules/prompt/functions/prompt_peepcode_setup | 2 +- modules/ruby/README.md | 2 +- modules/ruby/functions/ruby-info | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/prompt/functions/prompt_peepcode_setup b/modules/prompt/functions/prompt_peepcode_setup index bcedeec..58f4f8b 100644 --- a/modules/prompt/functions/prompt_peepcode_setup +++ b/modules/prompt/functions/prompt_peepcode_setup @@ -48,7 +48,7 @@ function prompt_peepcode_setup { zstyle ':vcs_info:git*+set-message:*' hooks git-status # Set ruby-info parameters. - zstyle ':prezto:module:ruby' version ' %F{white}%v%f' + zstyle ':prezto:module:ruby:info:version' format ' %F{white}%v%f' # Define prompts. PROMPT=" diff --git a/modules/ruby/README.md b/modules/ruby/README.md index a95bc36..4961f00 100644 --- a/modules/ruby/README.md +++ b/modules/ruby/README.md @@ -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. # %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 `ruby-info` in the `prompt_theme_preexec` hook function. diff --git a/modules/ruby/functions/ruby-info b/modules/ruby/functions/ruby-info index f2ce2ed..7bc8ead 100644 --- a/modules/ruby/functions/ruby-info +++ b/modules/ruby/functions/ruby-info @@ -22,7 +22,7 @@ fi # Format version. if [[ -n "$version" ]]; then - zstyle -s ':prezto:module:ruby' version 'version_format' + zstyle -s ':prezto:module:ruby:info:version' format 'version_format' zformat -f version_formatted "$version_format" "v:$version" ruby_info[version]="$version_formatted" fi