浏览代码

Fix peepcode theme ruby prompt info (#5339)

The ruby prompt info was not interpolating properly. Switching to use
 ruby_prompt_info helper. This addresses the issue.
Matt Nichols 7 年之前
父节点
当前提交
fb8953d525
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1 7
      themes/peepcode.zsh-theme

+ 1 - 7
themes/peepcode.zsh-theme

@@ -41,10 +41,4 @@ PROMPT='
 %~
 ${smiley}  %{$reset_color%}'
 
-if [[ -d ~/.rvm ]] && [[ -e ~/.rvm/bin/rvm-prompt ]]; then
-    rvm_prompt='$(~/.rvm/bin/rvm-prompt)'
-else
-    rvm_prompt=''
-fi
-
-RPROMPT='%{$fg[white]%} $rvm_prompt$(git_prompt)%{$reset_color%}'
+RPROMPT='%{$fg[white]%} $(ruby_prompt_info)$(git_prompt)%{$reset_color%}'