diff --git a/oh-my-zsh/modules/prompt/functions/prompt_skwp_setup b/oh-my-zsh/modules/prompt/functions/prompt_skwp_setup index 7740085..27b4896 100644 --- a/oh-my-zsh/modules/prompt/functions/prompt_skwp_setup +++ b/oh-my-zsh/modules/prompt/functions/prompt_skwp_setup @@ -13,9 +13,11 @@ # Yan Pritzker function rvm_info_for_prompt { - ruby_version=$(~/.rvm/bin/rvm-prompt) - if [ -n "$ruby_version" ]; then - echo "[$ruby_version]" + if [[ -d ~/.rvm/ ]]; then + ruby_version=$(~/.rvm/bin/rvm-prompt) + if [ -n "$ruby_version" ]; then + echo "[$ruby_version]" + fi fi }