From 33c7b7c32f2e156954359747c1f48f5481e8ad14 Mon Sep 17 00:00:00 2001 From: Steven De Coeyer Date: Mon, 3 Jun 2013 11:21:33 +0200 Subject: [PATCH] Adds clever rrprompt (independant of ruby version manager, if any) --- themes/zhann.zsh-theme | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/themes/zhann.zsh-theme b/themes/zhann.zsh-theme index d986368c4..50a926a96 100644 --- a/themes/zhann.zsh-theme +++ b/themes/zhann.zsh-theme @@ -23,10 +23,5 @@ PROMPT='%B%F{blue}%c%B%F{green}${vcs_info_msg_0_}%B%F{magenta} %{$reset_color%}% autoload -U add-zsh-hook add-zsh-hook precmd theme_precmd -if [ -e ~/.rvm/bin/rvm-prompt ]; then - RPROMPT='%{$reset_color%} %{$fg[red]%}$(~/.rvm/bin/rvm-prompt i v g) %{$reset_color%}' -else - if which rbenv &> /dev/null; then - RPROMPT='%{$reset_color%} %{$fg[red]%}$(rbenv version | sed -e "s/ (set.*$//") %{$reset_color%}' - fi -fi +RPROMPT='%{$reset_color%} %{$fg[red]%}$(ruby -e "puts \"#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}\"") %{$reset_color%}' +