diff options
author | Harald Nordgren <haraldnordgren@gmail.com> | 2016-06-15 00:12:24 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-06-15 00:12:24 +0200 |
commit | 53acf21182a630e1f45feb49fca641e645ba8415 (patch) | |
tree | 1f5be32961856b74e73963217b7d337c441cca18 | |
parent | 514ef607046e2c081de8e6c550360868cd91650f (diff) | |
download | zsh-53acf21182a630e1f45feb49fca641e645ba8415.tar.gz zsh-53acf21182a630e1f45feb49fca641e645ba8415.tar.bz2 zsh-53acf21182a630e1f45feb49fca641e645ba8415.zip |
Peepcode theme: Don't try to use RVM if it's not available (#5154)
-rw-r--r-- | themes/peepcode.zsh-theme | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/peepcode.zsh-theme b/themes/peepcode.zsh-theme index 96e4f1192..9dc58294a 100644 --- a/themes/peepcode.zsh-theme +++ b/themes/peepcode.zsh-theme @@ -41,4 +41,10 @@ PROMPT=' %~ ${smiley} %{$reset_color%}' -RPROMPT='%{$fg[white]%} $(~/.rvm/bin/rvm-prompt)$(git_prompt)%{$reset_color%}' +if [[ -d ~/.rvm ]] && [[ -e ~/.rvm/bin/rvm-prompt ]]; then + rvm_prompt='$(~/.rvm/bin/rvm-prompt)' +else + rvm_prompt='' +fi + +RPROMPT='%{$fg[white]%} $rvm_prompt$(git_prompt)%{$reset_color%}' |