diff options
author | bronzdoc <lsagastume1990@gmail.com> | 2015-09-02 16:57:13 -0600 |
---|---|---|
committer | bronzdoc <lsagastume1990@gmail.com> | 2015-09-02 16:57:13 -0600 |
commit | bec496f0534560dd32d9986b1cb99d25a1fbd819 (patch) | |
tree | d5617162cdb98632cd0a7f785eb348f91174bc43 /themes | |
parent | 0532860c618aabc02d5dab34391b967e8e4c6272 (diff) | |
download | zsh-bec496f0534560dd32d9986b1cb99d25a1fbd819.tar.gz zsh-bec496f0534560dd32d9986b1cb99d25a1fbd819.tar.bz2 zsh-bec496f0534560dd32d9986b1cb99d25a1fbd819.zip |
Display rvm-prompt output.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/amuse.zsh-theme | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/themes/amuse.zsh-theme b/themes/amuse.zsh-theme index 548f6d39d..60761b5c0 100644 --- a/themes/amuse.zsh-theme +++ b/themes/amuse.zsh-theme @@ -18,4 +18,11 @@ ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!" ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?" ZSH_THEME_GIT_PROMPT_CLEAN="" -RPROMPT='%{$fg_bold[red]%}$(rbenv_version)%{$reset_color%}' +if [ -e ~/.rvm/bin/rvm-prompt ]; then + RPROMPT='%{$fg_bold[red]%}‹$(~/.rvm/bin/rvm-prompt i v)›%{$reset_color%}' +else + if which rbenv &> /dev/null; then + RPROMPT='%{$fg_bold[red]%}$(rbenv_version)%{$reset_color%}' + fi +fi + |