diff --git a/plugins/rvm/rvm.plugin.zsh b/plugins/rvm/rvm.plugin.zsh index 234ac1642..db066394e 100644 --- a/plugins/rvm/rvm.plugin.zsh +++ b/plugins/rvm/rvm.plugin.zsh @@ -72,3 +72,10 @@ function _rvm_completion { source $rvm_path"/scripts/zsh/Completion/_rvm" } compdef _rvm_completion rvm + +# Register the rvm sources. +if [ -f ~/.rvm/scripts/rvm ]; then + source ~/.rvm/scripts/rvm +elif [ -f /usr/local/rvm/scripts/rvm ]; then + source /usr/local/rvm/scripts/rvm +fi