c6aacf611d51f7c00d216f77c3b32174cc3bed9c

Author
LFDM <1986gh@gmail.com>
Committer
LFDM <1986gh@gmail.com>
Date

Message

Refactors ruby_prompts.zsh

Diff

 1diff --git a/lib/ruby_prompts.zsh b/lib/ruby_prompts.zsh
 2index 287b3ff0ae5418a59ebb0de51a2bd2dbf4063604..2ef334d5f3e2f378531b84f7f0710293aaeee376 100644
 3--- a/lib/ruby_prompts.zsh
 4+++ b/lib/ruby_prompts.zsh
 5@@ -7,13 +7,9 @@ function rvm_prompt_info() {
 6   echo "${ZSH_THEME_RVM_PROMPT_PREFIX:=(}${rvm_prompt}${ZSH_THEME_RVM_PROMPT_SUFFIX:=)}"
 7 }
 8 
 9-# using the rbenv plugin will override this with a real implementation
10-function rbenv_prompt_info() {
11-  return 1
12-}
13-
14-# using the chruby plugin will override this with a real implementation
15-function chruby_prompt_info() {
16+# using the chruby and/or rbenv plugins will override
17+# these with real implementations
18+function chruby_prompt_info rbenv_prompt_info {
19   return 1
20 }
21