title: How to access function in bashrc at new terminal
body: <p>I created a function in <code>.bashrc</code> like this;</p>
  
  <pre><code> #!/bin/bash
   function test() { ls; }
   export -f test
  </code></pre>
  
  <p>and call it in new terminal like this;</p>
  
  <pre><code>$ test
  </code></pre>
  
  <p>the result is <code>test: command not found</code></p>
  
  <p>What did I do wrong to access a function in <code>.bashrc</code> ?</p>