title: `rbenv rehash` not generating shims (using rbenv-gemset plugin)
body: <p>I'm using <code>rbenv</code> and <code>rbenv-gemset</code> to manage the gems for a middleman project.</p>
  
  <p>Even though I've run the <code>rbenv rehash</code> command, the shim for middleman does not exist:</p>
  
  <pre><code>→  middleman git:(master) × rbenv which middleman
  rbenv: middleman: command not found
  </code></pre>
  
  <p>You can see here that I do have the middleman gem installed though:</p>
  
  <pre><code>→  middleman git:(master) × gem list middleman
  
  *** LOCAL GEMS ***
  
  middleman (3.1.5)
  middleman-core (3.1.5)
  middleman-more (3.1.5)
  middleman-sprockets (3.1.4)
  </code></pre>
  
  <p>And here it is in my <code>rbenv-gemset</code> directory:    </p>
  
  <pre><code>→  middleman git:(master) × ls .gems/gems
  middleman-3.1.5
  middleman-core-3.1.5
  middleman-more-3.1.5
  middleman-sprockets-3.1.4
  </code></pre>
  
  <p>And here you can also see there is a <code>middleman</code> command in the <code>rbenv-gemsets</code> directory:</p>
  
  <pre><code>→  middleman git:(master) × ls .gems/bin/
  bundle       erubis       kramdown     padrino      rails        rake2thor    ri           sass-convert sprockets    tilt
  compass      haml         middleman    rackup       rake         rdoc         sass         scss         thor         tt
  </code></pre>
  
  <p>Yet running <code>rbenv rehash</code> does not generate the <code>middleman</code> shim (among others) :</p>
  
  <pre><code>→  middleman git:(master) × ls ~/.rbenv/shims
  bundle          dnsimple.rb     gem             rackup          rdoc            sass            sdoc            testrb          tt              update_rubygems
  compass         erb             httparty        rails           ri              sass-convert    sdoc-merge      thor            unicorn
  dnsimple        erubis          irb             rake            ruby            scss            sprockets       tilt            unicorn_rails
  </code></pre>
  
  <p>Here is my gem environment:</p>
  
  <pre><code>→  middleman git:(master) × gem env
  RubyGems Environment:
    - RUBYGEMS VERSION: 2.0.7
    - RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [x86_64-darwin12.4.0]
    - INSTALLATION DIRECTORY: /Users/asgeo1/Projects/myproj/middleman/.gems
    - RUBY EXECUTABLE: /Users/asgeo1/.rbenv/versions/1.9.3-p448/bin/ruby
    - EXECUTABLE DIRECTORY: /Users/asgeo1/Projects/myproj/middleman/.gems/bin
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-darwin-12
    - GEM PATHS:
       - /Users/asgeo1/Projects/myproj/middleman/.gems
       - /Users/asgeo1/.rbenv/versions/1.9.3-p448/gemsets/global
    - GEM CONFIGURATION:
       - :update_sources =&gt; true
       - :verbose =&gt; true
       - :backtrace =&gt; false
       - :bulk_threshold =&gt; 1000
    - REMOTE SOURCES:
       - https://rubygems.org/
  </code></pre>
  
  <p>What could be going wrong? Is this an issue with <code>rbenv</code> or <code>rbenv-gemset</code>?</p>