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,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
}