handle case where ~/.rvm/bin/rvm-prompt is not in path, so "which" can't find it

This commit is contained in:
Brent Faulkner 2012-02-12 12:27:06 -05:00
commit b62a3e8960
6 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
PROMPT='%{$fg_bold[green]%}%p %{$fg[cyan]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
if which rvm-prompt &> /dev/null; then
if [ -e ~/.rvm/bin/rvm-prompt ]; then
RPROMPT='%{$reset_color%} %{$fg[red]%}$(~/.rvm/bin/rvm-prompt i v g) %{$reset_color%}'
else
if which rbenv &> /dev/null; then