bec496f0534560dd32d9986b1cb99d25a1fbd819

Author
bronzdoc <lsagastume1990@gmail.com>
Committer
bronzdoc <lsagastume1990@gmail.com>
Date

Message

Display rvm-prompt output.

Diff

 1diff --git a/themes/amuse.zsh-theme b/themes/amuse.zsh-theme
 2index 548f6d39d089ccbee283d10f8879160ff5e484b9..60761b5c0ce0a24e77a9f0d70147d65017798de0 100644
 3--- a/themes/amuse.zsh-theme
 4+++ b/themes/amuse.zsh-theme
 5@@ -18,4 +18,11 @@ ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
 6 ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
 7 ZSH_THEME_GIT_PROMPT_CLEAN=""
 8 
 9-RPROMPT='%{$fg_bold[red]%}$(rbenv_version)%{$reset_color%}'
10+if [ -e ~/.rvm/bin/rvm-prompt ]; then
11+  RPROMPT='%{$fg_bold[red]%}‹$(~/.rvm/bin/rvm-prompt i v)›%{$reset_color%}'
12+else
13+  if which rbenv &> /dev/null; then
14+    RPROMPT='%{$fg_bold[red]%}$(rbenv_version)%{$reset_color%}'
15+  fi
16+fi
17+