From c03125f584ab56dbd4e789f67be2157a22dd7804 Mon Sep 17 00:00:00 2001 From: Matrix Date: Sun, 19 Oct 2014 19:01:16 -0300 Subject: [PATCH] Detect ruby version with chruby in gnzh theme --- themes/gnzh.zsh-theme | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/gnzh.zsh-theme b/themes/gnzh.zsh-theme index 0519fbefb..5a36f4ad6 100644 --- a/themes/gnzh.zsh-theme +++ b/themes/gnzh.zsh-theme @@ -42,6 +42,8 @@ elif which rvm-prompt &> /dev/null; then # detect sysem-wide rvm installation rvm_ruby='%{$PR_RED%}‹$(rvm-prompt i v g s)›%{$PR_NO_COLOR%}' elif which rbenv &> /dev/null; then # detect Simple Ruby Version management rvm_ruby='%{$PR_RED%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$PR_NO_COLOR%}' +elif which chruby_prompt_info &> /dev/null; then # detect chruby + rvm_ruby='%{$PR_RED%}‹$(chruby_prompt_info | sed -e "s/ (set.*$//")›%{$PR_NO_COLOR%}' fi local git_branch='$(git_prompt_info)%{$PR_NO_COLOR%}'