<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,12 +4,12 @@ function __rvm_meta {
   rvm_meta_author=&quot;Wayne E. Seguin&quot;
   rvm_meta_author_email=&quot;wayneeseguin@gmail.com&quot;
   rvm_meta_website=&quot;http://rvm.beginrescueend.com/&quot;
-  rvm_meta_version=&quot;$(cat $rvm_path/lib/VERSION.yml | tail -n 3 | sed 's/^.*: //g' | tr &quot;\n&quot; '.' | sed 's/\.$//')&quot;
+  rvm_meta_version=&quot;${RVM_VERSION}&quot;
 }
 
 function __rvm_version { __rvm_meta ; echo &quot;rvm ${rvm_meta_version} by ${rvm_meta_author} (${rvm_meta_author_email}) [${rvm_meta_website}]&quot; ; }
 
-function __rvm_usage { cat &quot;$rvm_path/README&quot; | ${PAGER:-less} ; }
+function __rvm_usage { cat &quot;${rvm_path:-$HOME/.rvm}/README&quot; | ${PAGER:-less} ; }
 
 function __rvm_parse_args {
   if [[ ! -z &quot;$(echo &quot;$*&quot; | awk '/trace/')&quot; ]] ; then echo &quot;$*&quot; ; fi
@@ -349,6 +349,14 @@ function rvm {
 
   trap '__rvm_cleanup_variables ; rm -rf &quot;/tmp/rvm/$$&quot; &gt;/dev/null 2&gt;&amp;1' 0 1 2 3 15
 
+  # Check that this is the current version.
+  disk_version=$(cat &quot;${rvm_path:-$HOME/.rvm}/lib/VERSION.yml&quot; | tail -n 3 | sed 's/^.*: //g' | tr &quot;\n&quot; '.' | sed 's/\.$//')
+  if [ -z &quot;${RVM_VERSION}&quot; -o &quot;${RVM_VERSION}&quot; != &quot;${disk_version}&quot; ]; then
+      echo &quot;Your shell's copy of rvm is out of date with the version on disk.&quot;
+      echo &quot;Please restart your shell or run rvm-restart.&quot;
+      return 1
+  fi
+
   __rvm_cleanup_variables
   __rvm_load_rvmrc
   __rvm_initialize</diff>
      <filename>scripts/cli</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,10 @@ source $rvm_path/scripts/cli
 source $rvm_path/scripts/gems
 
 rvm_loaded_flag=1 ; export rvm_loaded_flag
+RVM_VERSION=$(cat &quot;${rvm_path}/lib/VERSION.yml&quot; | tail -n 3 | sed 's/^.*: //g' | tr &quot;\n&quot; '.' | sed 's/\.$//')
+export RVM_VERSION
+
+alias rvm-restart=&quot;source \&quot;${rvm_path}/scripts/rvm\&quot;&quot;
 
 if [[ -f &quot;$rvm_path/default&quot; ]] ; then source $rvm_path/default ; fi
 </diff>
      <filename>scripts/rvm</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c875ac422cfdbca101e18b6f48681abce1bc4864</id>
    </parent>
  </parents>
  <author>
    <name>Christian H&#246;ltje</name>
    <email>docwhat@gerf.org</email>
  </author>
  <url>http://github.com/docwhat/rvm/commit/1c0746af8c93408ff46b9ff54190d5525a846adc</url>
  <id>1c0746af8c93408ff46b9ff54190d5525a846adc</id>
  <committed-date>2009-10-29T20:14:25-07:00</committed-date>
  <authored-date>2009-10-29T20:13:04-07:00</authored-date>
  <message>Feature: Checks if rvm needs to be re-synced in the shell.</message>
  <tree>30029721966a704fb82aadb173045c3a4833a54d</tree>
  <committer>
    <name>Christian H&#246;ltje</name>
    <email>docwhat@gerf.org</email>
  </committer>
</commit>
