title: which -a rails generates duplicate ouputs
body: <p>After solving this issue, and after I followed the solution: <a href="https://github.com/rbenv/rbenv/issues/1106" rel="nofollow noreferrer">https://github.com/rbenv/rbenv/issues/1106</a></p>
  <p>Nothing worked for me, so I ended up running <code>sudo gem install rails</code>.
  Everything's fine but when running <code>which -a rails</code>, I get duplicate outputs:</p>
  <pre><code>glenn@Glenns-MBP proj-api % which -a rails
  /Users/glennposadas/.rbenv/shims/rails
  /Users/glennposadas/.rbenv/shims/rails
  /Users/glennposadas/.rbenv/shims/rails
  /Users/glennposadas/.rbenv/shims/rails
  /usr/bin/rails
  </code></pre>
  <p>Question is, how do I clean these duplicates up?</p>
  <p>EDIT:
  PATH:</p>
  <pre><code>/usr/local/bin
  /usr/bin
  /bin
  /usr/sbin
  /sbin
  </code></pre>
  <p>ECHO PATH:</p>
  <blockquote>
  <p>/Users/glennposadas/.rbenv/shims:/Users/glennposadas/.rbenv/shims:/Users/glennposadas/Library/Android/sdk/platform-tools:/Users/glennposadas/Library/Android/sdk/tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/glennposadas/Library/Android/sdk/platform-tools:/Users/glennposadas/Library/Android/sdk/tools:/Users/glennposadas/Library/Android/sdk/tools/bin:/Users/glennposadas/Library/Android/sdk/emulator</p>
  </blockquote>