title: Is there a robust way to set MAVEN_HOME in my ~/.zshrc without specifying the version number? (MacOS)
body: <p><strong>Context</strong>: I install maven with <code>brew install maven</code></p>
  
  <p>In my <code>~/.zshrc</code> I have:</p>
  
  <pre><code># Maven (mvn --version)
  export MAVEN_HOME="$HOME/usr/local/Cellar/maven/3.6.3"
  export PATH=$MAVEN_HOME/bin:$PATH
  </code></pre>
  
  <p><strong>Is there a way to set my MAVEN_HOME in a way that allows me to not have to increment it when Maven is upgraded to 3.6.4?</strong></p>
  
  <p>It is somewhat tedious to have to go into my config file and update it every time I update Maven! :) </p>
  
  <p>This would also help an onboarding/setup script that could download maven and programmatically set up a <code>~/.zshrc</code> or <code>~/.bashrc</code> config</p>