53acf21182a630e1f45feb49fca641e645ba8415
- Author
- Harald Nordgren <haraldnordgren@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Peepcode theme: Don't try to use RVM if it's not available (#5154)
Diff
1diff --git a/themes/peepcode.zsh-theme b/themes/peepcode.zsh-theme
2index 96e4f11923731c01a65dcb143d7e2320858d7078..9dc58294a5486c9794a5ef583bee9049b1fd3a97 100644
3--- a/themes/peepcode.zsh-theme
4+++ b/themes/peepcode.zsh-theme
5@@ -41,4 +41,10 @@ PROMPT='
6 %~
7 ${smiley} %{$reset_color%}'
8
9-RPROMPT='%{$fg[white]%} $(~/.rvm/bin/rvm-prompt)$(git_prompt)%{$reset_color%}'
10+if [[ -d ~/.rvm ]] && [[ -e ~/.rvm/bin/rvm-prompt ]]; then
11+ rvm_prompt='$(~/.rvm/bin/rvm-prompt)'
12+else
13+ rvm_prompt=''
14+fi
15+
16+RPROMPT='%{$fg[white]%} $rvm_prompt$(git_prompt)%{$reset_color%}'