summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--themes/peepcode.zsh-theme8
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/peepcode.zsh-theme b/themes/peepcode.zsh-theme
index 96e4f1192..9dc58294a 100644
--- a/themes/peepcode.zsh-theme
+++ b/themes/peepcode.zsh-theme
@@ -41,4 +41,10 @@ PROMPT='
%~
${smiley} %{$reset_color%}'
-RPROMPT='%{$fg[white]%} $(~/.rvm/bin/rvm-prompt)$(git_prompt)%{$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%}'