From 5c63939c0be2333520a374e607b2470c77ec0389 Mon Sep 17 00:00:00 2001 From: Ryan Neufeld Date: Tue, 25 Oct 2011 13:17:52 -0700 Subject: [PATCH] check for existence of rvm-prompt before running it. --- themes/ryanneufeld.zsh-theme | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/ryanneufeld.zsh-theme b/themes/ryanneufeld.zsh-theme index 269782d79..81467534c 100644 --- a/themes/ryanneufeld.zsh-theme +++ b/themes/ryanneufeld.zsh-theme @@ -10,8 +10,10 @@ svn_prompt_status() { } rvm_prompt_status() { - if [ "" -ne "$(rvm-prompt i v g)" ]; then - echo "<"$(rvm-prompt i v g)">" + if [ -f "$(which rvm-prompt)"]; then + if [ "" -ne "$(rvm-prompt i v g)" ]; then + echo "<"$(rvm-prompt i v g)">" + fi fi }