check for existence of rvm-prompt before running it.

This commit is contained in:
Ryan Neufeld 2011-10-25 13:17:52 -07:00
commit 5c63939c0b

View file

@ -10,9 +10,11 @@ svn_prompt_status() {
} }
rvm_prompt_status() { rvm_prompt_status() {
if [ -f "$(which rvm-prompt)"]; then
if [ "" -ne "$(rvm-prompt i v g)" ]; then if [ "" -ne "$(rvm-prompt i v g)" ]; then
echo "<"$(rvm-prompt i v g)">" echo "<"$(rvm-prompt i v g)">"
fi fi
fi
} }
local user='%{$fg[magenta]%}%n@%{$fg[magenta]%}%m%{$reset_color%}' local user='%{$fg[magenta]%}%n@%{$fg[magenta]%}%m%{$reset_color%}'