title: How to create a function in bashrc to accept arguments?
body: <p>I would like to have an alias in my bashrc file to append the argument passed to it from terminal. For example:</p>
  
  <pre><code>$ lh300
  </code></pre>
  
  <p>calls: </p>
  
  <pre><code>alias lh3000='open http://localhost:3000'
  </code></pre>
  
  <p>However, if I type:</p>
  
  <p>$ lh8080
  or lh followed by any number:</p>
  
  <pre><code>$ lh#### 
  </code></pre>
  
  <p>I would like to call a function that appends the #### into an alias that will </p>
  
  <pre><code>'open http://localhost:####'
  </code></pre>
  
  <p>How can I do this?</p>