title: How do I make my Homebrew installation of Ruby the default over the macOS pre-installed version?
body: <p>After installing Homebrew and updating ruby to the latest version</p>
  
  <pre><code>brew upgrade ruby
  </code></pre>
  
  <p>when I run</p>
  
  <pre><code>which ruby
  </code></pre>
  
  <p>it still defaults to the pre-installed OSX version at </p>
  
  <pre><code>/usr/bin/ruby
  </code></pre>
  
  <p>How do I change the default to my Homebrew installation?</p>